The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
49 views

WP_Query and is_page_template() conditional

I have a custom query that goes looks like this: $temp = $wp_query; $wp_query = null; $args = array('posts_per_page' => 5, 'post_type' => 'gallery', 'post_status' => ...
-1
votes
1answer
65 views

Resetting a Query using wp_reset_query() or wp_reset_postdata() does not work

I am using ACF as related posts. I have the following code. <?php $post_objects = get_field('repeater_related_items'); if( $post_objects ): ?> <ul> <?php foreach( $post_objects ...
0
votes
0answers
14 views

Wordpress custom loop and wp_pagenavi [duplicate]

My code is the following: function blog_pagecustom() { if (is_page(703)) { global $wp_query; $args = array( 'post_type' => 'post', 'posts_per_page' => 4, ...
0
votes
1answer
279 views

Problem with different query loops (and “main loop”) on category template page!

so, heres the problem: i've created a category-template (category.php) with two query loops and the main loop (in which the content from the category should get looped in). if i now click on a ...
0
votes
1answer
53 views

Loop being strainge

So I hacked together a function that does the following: protected function _query_post($query){ $original = $this->_wp_query; $wp_query = new WP_Query($query); ...
2
votes
1answer
920 views

Is it necessary to reset the query after using get_posts()?

Is it necessary to reset the query after using get_posts() ? I have been looking at this page and I don't see any reference to get_posts() ... I can't make it out for sure from this page either. I ...