Метод | Описание | |
---|---|---|
__construct ( $query = false, $posts_class = 'Timber\Post' ) | ||
count ( ) : integer | Count elements of an object. | |
current ( ) | ||
fix_cat_wp_quirk ( $query ) | get_posts uses category, WP_Query uses cat. Why? who knows. | |
fix_number_posts_wp_quirk ( $query ) | get_posts users numberposts | |
get_pagination ( $prefs ) | ||
get_posts ( $return_collection = false ) | ||
get_query_from_array_of_ids ( $query = [] ) | ||
get_query_from_string ( $string = '' ) | ||
handle_maybe_custom_posts_page ( WP_Query $query ) : WP_Query | this will test for whether a custom page to display posts is active, and if so, set the query to the default | |
key ( ) | ||
next ( ) | Don't implement next, because current already advances the loop | |
post_count ( ) | ||
rewind ( ) | ||
valid ( ) |
public static fix_number_posts_wp_quirk ( $query ) |
public static get_query_from_array_of_ids ( $query = [] ) |
public static get_query_from_string ( $string = '' ) |
public static handle_maybe_custom_posts_page ( WP_Query $query ) : WP_Query | ||
$query | WP_Query | the original query recived from WordPress |
Результат | WP_Query |
final public next ( ) |