I have a hierarchy that I need to get data from. It’s the child (by […]
Tag: query
How to reduce the number of queries?
I have meta key “Due” for posts….if a post has expired (past the current date […]
Should ‘setup_postdata()’ be reset with ‘wp_reset_postdata()’?
Starting with an example makes more sense, so here’s an example function: function seo_meta_tags() { […]
example of build_query function?
I have this resource: (http://codex.wordpress.org/Function_Reference/build_query), but it does not give full example. I have this […]
Only display a certain number of posts, dependent on how many posts there are available in a query
I am trying to write some code for a slider of posts, at the moment […]
Query posts dynamic date range
So, I’m using the following to filter posts: $paged = is_front_page() ? get_query_var( ‘page’ ) […]
Query custom post type by custom field
General Info I used the plugin WP Types (wp-types.com) to create a custom post type […]
is_category() in pre_get_posts strange error
I have a function that sets posts_per_page option depending on the category viewed. I discovered […]
wordpress query – orderby child post date
I have support ticket system which i have built using wordpress. The basic functionality is […]
Should $found_posts be returned as string in ‘found_posts’ filter hook?
In general a function that hooks into the found_posts filter looks like this: add_filter( ‘found_posts’, […]
No More Posts Available.
No more pages to load.