Archive | Functions by letter g RSS feed for this section

get_query_template

Retrieve path to a templateUsed to quickly retrieve the path of a template without including the file extension. It will also check the parent theme, if the file exists, with the use of locate_template(). Allows for more generic template location without the use of the other get_*_template() functions.

1653

Continue reading

get_private_posts_cap_sql

Retrieve the private post SQL based on capability.This function provides a standardized way to appropriately select on the post_status of a post type. The function will return a piece of SQL code that can be added to a WHERE clause; this SQL is constructed to allow all published posts, and all private posts to which the user has access.

1647

Continue reading