Fix ALT tags for avatars in BBPress (WordPress)

I recently discovered a little “error” on one of my websites running WordPress with BBPress.The ALT tag for all avatars/gravatars used in my WordPress BBPress forum was set to: alt=””. Bing, according to their webmaster tools, did complain over the lack of the BBPress avatars ALT tags on most pages in my forum.Seeing all those … Read more

Auto add ALT to WordPress featured images

I found this bit of PHP code that worked fine. What it does is that if your featured images in WordPress have empty ALT tags, then it will use the WordPress post title to fill them. Add the following code to your theme functions.php file. And not the WordPress functions.php file… function lwp_37481_featured_alt_text($metadata, $object_id, $meta_key, … Read more

Direct link that will delete a WordPress post (PHP)

This is a bit of very badly written PHP code that will add a link under each post.When clicking on “Delete Post” the post will instantly get deleted. Only when you’re logged in as a administrator you’ll see the link.Add this to your themes index.php file somewhere inside the loop. if (current_user_can(‘administrator’)) { global $post; … Read more