Hi,
When I use Grid Layout for the blog page, the blog page itself shows up as the last post. It only happens when I use the grid layout.
How can that be?
Hey HAJ-MBJ,
Can you please provide us also with WordPress admin login?
Best regards,
Basilis
Sure – and thanks for looking into it!
Hi,
Based on the slug that you have used, it is loading the proper page.
Try by creating a new page, name is lets say test and try add the grid.
You will see the results after
Best regards,
Basilis
Hi Basilis,
I think we are maybe talking past each other?
The problem is that the blog page is shown in the end of the grid as if it was a blog post. (See my screenshot for reference).
I have created a new page and added the grid, but it behaves exactly the same.
Best regards,
Henrik
Hi,
Sorry, I understood that this is an actual post inside the grif, because that it how it looks like?
Best regards,
Basilis
Hi,
No, the last item in the grid is not a post- it’s a page. That’s the problem. :-) I can’t figure out why the blog grid presents a page (as if it was a blog post) in the blog grid.
The URL I posted, is for at page with the blog grid. The problem is that the page itself shows up in the blog grid.
Best regards,
Henrik
Hi,
Thanks for the update.
I’m not sure what’s causing the issue, yet. Did you use another theme before Enfold? Please try to upgrade to version 4.3. Let us know if it helps.
Best regards,
Ismael
Hi,
Yes, we actually used the Ronneby theme before switching to Enfold.
I have now upgraded Enfold to version 4.3, but it makes no difference.
Best regards,
Henrik
Hi,
Thank you for the update. We had to unset the post type page from the blog query.
// post slider query
add_filter('avia_post_slide_query', 'avia_post_slide_query_mod', 10, 2);
function avia_post_slide_query_mod( $query, $params ) {
if(is_page(15)) {
unset($query['post_type']['page']);
}
return $query;
}
Best regards,
Ismael
Hi,
Thank you very much – it seems to work! :-)
But why did the page appear there at all?
Best regards,
Henrik
Hi,
Happy you got it short out.
Please do let us know if there is anything else we can do for you.
Best regards,
Basilis