wordpress snippets last updated   : October 6, 2014
we now have 641 snippets

Dynamically order posts using query string and query_posts

wordpress snippet

Adding the first snippet just above the loop in your wordpress theme will let you dynamically order posts using a query string “asc or desc”.

read more

Random blog post

wordpress snippet

Adding this PHP code to your wordpress theme just before the loop will display one random post from your wordpress database.

read more