Skip to content

Documentation

Extensive Documentation for PowerPack & WooPack to help you with common questions and issues.

PowerPack

  1. Home
  2. Docs
  3. PowerPack
  4. Modules
  5. Content Grid
  6. How to Fix Pods Content Not Loading After Clicking Filters?

How to Fix Pods Content Not Loading After Clicking Filters?

If you’re using PODS and the post content is not loading after the filters are used then please try the following fix.

1. Go to the current theme’s functions.php file.
2. Copy the following lines of code to it

 add_action( 'pp_post_grid_ajax_before_query', 'pp_pods_loop_fake_actions' );
function pp_pods_loop_fake_actions() {
    add_action( 'loop_start', 'pp_fake_loop_true');
    add_action( 'loop_end', 'pp_fake_loop_false' );
}
function pp_fake_loop_true() {
    global $wp_query;
    // Fake being in the loop.
    $wp_query->in_the_loop = true;
}
function pp_fake_loop_false() {
    global $wp_query;
    // Stop faking being in the loop.
    $wp_query->in_the_loop = false;

    remove_action( 'loop_start', 'pp_fake_loop_true' );
    remove_action( 'loop_end', 'pp_fake_loop_false' );
}

Once done, clear all the caches and try using the filters again.

Still facing the issue then please contact us.

Was this article helpful to you? Yes No

How can we help?

×