Constructs the wp_posts class.
Returns all categories or those within the optional parent category id.
Returns an array with title and description for a particular image that has been uploaded into the gallery.
Retrieves a post given an post-ID or -slug.
Fetches an array of posts from WordPress.
You give a set of options in an associative array (no specific order needed). Following is a list of keys and values for this array, all other keys will be discarded. If a value is not present, blank or not one of the allowed values then the default is used. 'categories' integer, string, or array of integers or strings, each referring to either a category id or slug respectively. 'limit' integer or array of integers. If an integer, it refers to the upper limit of number of posts to return. If an array, it should have two items: the first the starting item in the results, the second the number of posts to retrieve. 'order' string. Only the following are accepted. "time_asc", "time_desc" (default), "title_asc", "title_desc", "modified_desc", "modified_asc" 'time_span' array If set, the array should include two strings that when you apply strtotime() yield a valid time. The first string is the begin date, the second is the end date. 'meta_filter' associative array. If set, the assoc. array should have the following keys: 'key', 'value' (optional), 'type' (optional). The 'key' key should point at a string corresponding with a meta key. The 'value' key, if set, should point at a string that we'll compare with the meta values. The 'type' key, if set, should point to a string that is one of these: 'like', '=', '>', '<'. 'like' is the default. If only key is set, then the query will get posts that have that key declared. If key and value are set and type is not, then it will get posts that have that meta key LIKE the given meta value If key, value, and type are set, then it will get posts that have the meta key set such that it matches the given value in the way specified. 'exclude_sub_cats' bool. When false (default) posts that are in sub categories of the ones specified will be retrieved in addition to the posts in the categories specified. Setting this to true reverses the behavior. 'no_data' bool, default false. If set true, then returns just the number of results.
Returns an array of categories that a post is tagged as.
Retrieves a post ID given post-slug.
Retrieves the meta for a particular post.
default_version
= '3.0.1'
(line 16)
get_posts_categories_default
= false
(line 17)
get_posts_exclude_sub_cats_default
= false
(line 22)
get_posts_limit_default
= 0
(line 18)
get_posts_meta_filter_default
= false
(line 21)
get_posts_no_data_default
= false
(line 23)
get_posts_order_default
= 'time_desc'
(line 19)
get_posts_time_span_default
= 'all'
(line 20)
Documentation generated on Thu, 11 Nov 2010 20:59:42 -0600 by phpDocumentor 1.4.3