I’m still relatively new to PHP and the one thing that continues to trip me up is the use of global variables. I cut my programming teeth many years ago on languages like C and Visual Basic and more recently JavaScript, all of which handle global variables differently to PHP.
inFocus WP Theme: Display Blog Post Images on Single Blog Post Pages
These instructions are only applicable for versions of inFocus up to and including v1.6
In a recent blog comment I was asked if I happened to know why the inFocus theme doesn’t display blog post images on single blog post pages. I too had noticed this when adding images to my blog posts and assuming this was, for whatever reason, how the developer intended it to be thought no more of it.
However, looking at the code it seemed simple enough to add this ability. You can see the quick-and-dirty fix here or read on for what is perhaps a cleaner solution.
Getting a Post’s ID from the Post’s URL in WordPress
I’ve just implemented a new AJAX contact form on my blog. In the submission confirmation I wanted to show a link back to the post the user was viewing when they requested the contact form.