This is a handy bit of code for displaying different content based on what category your post is in. Useful on the single.php page I found – can display different…
In this instance I want to only list the sub pages of the category 73 for a subnavigation on a custom page
Used this recently to display the 1st item in an external xml file on a wordpress site. You use the e.g. $item->item->description. to walk down through the nodes and extract whatever…
Sample of a query post below – this one will show 3 posts from the category called events. You can also use cat=7 and use the id of the category…
Navigate the the directory you want a list from using cmd > cd etc etc. Remember cd.. brings you up a folder Once in the directory you wish to print the contents…
Just found out today that in using the_date() if 2 posts are from the same date then only the_date will only appear on the first post. However will pull back…
Ok.. so everything I had before got deleted.. don’t mention the rage. breathing… and starting again. Just a collection of bits and pieces that I’ve found useful as I work…