Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #171540

    Hi!,

    There are two pages that appear on the blog page, see screenshots below.

    First screenshot, the blog page (‘Actueel’), with two pages: http://d.pr/i/TcVJ.
    One of the pages that is listed on the blog page, see breadcrum – it really is a page : ): http://d.pr/i/9qyZ

    Any suggestions?
    Thanks!
    Wouter

    #172343

    Hello wvanderzee!

    What is the URL for the site?

    Best regards,
    Devin

    #172397
    This reply has been marked as private.
    #173496

    Hey!

    Please create us an admin account and post the login credentials as private reply – we’ll look into it.

    Regards,
    Peter

    #173529
    This reply has been marked as private.
    #174124

    Hey!

    Tbh I’ve no idea why WP adds pages to the post query in your case but I found a simple fix. I replace following line in index.php

    
                            $atts 	= array('type' => 'grid', 'items' => get_option('posts_per_page'), 'columns'=> 3, 'class'=>'avia-builder-el-no-sibling', 'paginate'=>'yes');
    

    with

    
    			$page = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : get_query_var( 'page' );
    			$query = array('posts_per_page'=> get_option('posts_per_page'),'paged'=> $page);
    				
                            $atts 	= array('type' => 'grid', 'custom_query' => $query, 'items' => get_option('posts_per_page'), 'columns'=> 3, 'class'=>'avia-builder-el-no-sibling', 'paginate'=>'yes');
    

    and the blog grid works now.

    Cheers!
    Peter

    #174974

    Ok, thanks for solving this!

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Pages appear in blog’ is closed to new replies.