Wordless
Stop writing themes like it's 1998.
Public Member Functions | List of all members
QueryHelper Class Reference

This module provides methods for quering the WP database. More...

Public Member Functions

 latest_posts_of_type ($type, $limit=-1, $order='date', $ord='DESC')
 Get last posts of specified type. More...
 
 latest_post_of_type ($type, $order='date')
 Get the last post of the specified type. More...
 
 latest_posts_of_category ($category, $limit, $offset=0, $post_type='post', $taxonomy='category', $order='date', $ord='DESC')
 Get last posts of specified category. More...
 
 latest_post_of_category ($category, $post_type='post', $taxonomy='category')
 Get the last post of the specified category. More...
 
 is_post_type ($type)
 Check if post type is the one specified. More...
 
 get_the_first_categories_except ($limit, $except)
 Get the first categories, except one. More...
 
 get_page_id_by_title ($title)
 Returns the page ID from page title. More...
 
 get_category_id_by_name ($cat_name, $taxonomy='category')
 Returns the category ID from the category name. More...
 
 get_category_link_by_name ($cat_name, $taxonomy='category')
 Returns a link to the specified category. More...
 
 get_the_filtered_content ()
 Returns the content of the current post. More...
 
 get_post_type_singular_name ()
 Returns the post type (always singular). More...
 
 get_page_title ($prefix="", $separator="")
 Returns the page title. More...
 

Detailed Description

This module provides methods for quering the WP database.