• I created a template for each category. In it, I use a grid for posts with Content Views Pro. I also have separate widgets for each category that sort posts by ACF. However, the category page duplicates entries using the built-in GeneratePress loop. I tried to disable them with the code below, but it didn’t help.

    PHP

    add_filter( 'generate_do_template_part', function( $do ) { 
        // Checks if the current page being viewed is a category archive page
        if ( is_category() ){
            // Setting $do to 'false' tells GeneratePress NOT TO DISPLAY the default loop
            $do = false;    
        }
        return $do; 
    });

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • ying

    (@yingscarlett)

    Hi there,

    What kind of template are you referring to? A php template or a block element – content template?

    If it’s the latter, we can not provide support for it here per WP’s regulation, as it’s a premium feature. Can you kindly open a support topic at GP’s premium support forum?

    Let me know 🙂

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.