Tagged: Blog
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
Hello wvanderzee!
What is the URL for the site?
Best regards,
Devin
Hey!
Please create us an admin account and post the login credentials as private reply – we’ll look into it.
Regards,
Peter
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
Ok, thanks for solving this!