WordPress Wednesdays: Little WordPress Gems

Every once and awhile while looking through the WordPress documentation, I find little gems. Here are a few that I found particularly interesting:

  • wp_page_menu Easily create a menu with the home page appended onto the menu with a lot of parameters. Similar to the standard wp_list_pages, but with some different possibilities
  • the_search_query I have seen several ways to get this, but this is by far the easiest, quickest, and most secure.
  • wp_reset_query If you use conditional tags, you will end up going crazy at some point and then will realize this is needed. Note to self everyone.