Placing the following PHP code snippet below in your theme’s funtions.php file will disable a WordPress feature that attempts to automatically redirect a bad url to an actual post or page with a similar url. Please note, if there are any broken links to your website or it’s pages that benefit from this feature it … Continue reading “Disable URL Guessing in WordPress”
Disable URL Guessing in WordPress
New arrivals for my productivity library
I can’t wait to crack open these two titles by Jason Fried and David Heinemeier Hansson.
Adding alt text to a post thumbnail
While working on a custom navigation using WP_Query and has_post_thumbnail for an icon I ran into an accessibility concern. By default, the_post_thumbnail will not display an alt tag when rendered in the browser. In the following code snippet I add an alt tag using the image file’s title. <?php // The Post Array $args = … Continue reading “Adding alt text to a post thumbnail”