by Josh Merriam | Oct 18, 2013 | Code, PHP, Wordpress
Ok, this one seemed to trip me up quite a bit when I had a client ask to exclude a certain category from the main blog page in WordPress. For example, if you have a category of “news” or a category of “events” that you don’t want to show...
by Josh Merriam | Aug 15, 2012 | Code, Drupal, PHP
Man, after much tinkering and frustration I have finally realized that when using Views PHP to construct fields you cannot print actual text values out. Instead it will produce the entity number in your output code. So, in case you are trying to get a Global PHP field...
by Josh Merriam | Jul 11, 2012 | Code, PHP
I hate having to go in and manually update the year in the footer on websites next to the copyright text. This isn’t anything fancy or new but just something to keep in your brain so you don’t have to go around updating the year every January in your...