Here’s a useful code snippet in PHP for WordPress to get a link to the newest (latest, freshest… you get the idea) post in WordPress.

Code starts here:
$latest = get_posts(array('numberposts' => 1));
$url = get_permalink($latest[0]->ID);
echo "<a href='" . $url . "'>Click here to read our latest post!</a>";Yeah, that’s it. Have a great day!
Direct link that will delete a WordPress post (PHP)
This is a bit of very badly written PHP code that will add ...
Fix ALT tags for avatars in BBPress (WordPress)
I recently discovered a little "error" on one of my website...
Auto add ALT to WordPress featured images
I found this bit of PHP code that worked fine. What it does...
