Check if a Number is Even or Odd with PHP
Ever needed to check if a number is even or odd? If so, here is a pretty simple piece of code that does just that.
Ever needed to check if a number is even or odd? If so, here is a pretty simple piece of code that does just that.
I just needed to do this for a client’s site to set an expiration date for a user and I thought it might be something that other programmers might like…
Wouldn’t you like to be able to display the actual search term entered by your user on the search results’ page? Good thing there is a very simple way in…
This is something that most people who use PHP already know. I still think it is useful to mention it because some less experienced PHP coders might not have come…
I was creating a drop down menu for the categories in my Magazine Basic theme and I came across something that started to annoy me a bit. When you hover…
I have already mentioned a few ways to do this but I have discovered a few problems with my old code. I have improved this one quite a bit so…
When WordPress 2.7 came out, there were a lot of new features, most of which probably passed by under your radar. I know I missed a bunch and thankfully, I…
I just had someone ask me why everything on their front page became bolded when they placed <?php the_content(‘(more’)); ?> in their code to use in conjunction with the more…
I have been receiving a large amount of comments on my Magazine Basic theme and I was having a bit of trouble referencing certain ones, so I decided to add…
I have gone into this code and really cleaned it up to make it work properly with WordPress installs that are in subdirectories or wherever. I have also added a…