wordpress snippets last updated   : January 29, 2015
we now have 646 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