-
AuthorPosts
-
February 6, 2015 at 11:59 am #391945
Hi guys,
I am using the Blog element, but for some reason it also lists two pages in there!? How is that possible?
Thanks for your help
FelixFebruary 6, 2015 at 12:43 pm #391983February 6, 2015 at 12:46 pm #391985This reply has been marked as private.February 7, 2015 at 12:55 pm #392453Hi!
Thank you for the info.
I checked the site but I can only see the blog grid section. Can you please provide a screenshot of the issue?
Regards,
IsmaelFebruary 9, 2015 at 11:51 am #392955Hi Ismael,
it happens in the blog grid. Here is a screenshot:
https://www.dropbox.com/s/3mdlwdiahq8vn91/pages-in-blog-overview.jpg?dl=0Regards
FelixFebruary 10, 2015 at 11:26 pm #394082Hey!
It looks like you have a lot of customization going on. Let’s try the following.
1. Create a backup.
2. Update WordPress.
3. Deactivate all plugins.
4. Completely delete Enfold from your WordPress theme directory before downloading + uploading a fresh copy from themeforest. After doing this you should be using Enfold 3.0.8 instead of 3.0.4.
Cheers!
ElliottFebruary 11, 2015 at 6:08 pm #394544Hi Elliott,
I tried that but the pages are still in the news overview.
I did some more digging and found that for some reason the variable ‘post_type’ contains every possible type.
So I inserted this line into blog.php:264 before the slider is generated:if($atts['blog_type'] == 'posts') $atts['post_type'] = 'post'; //using the post slider with inactive js will result in displaying a nice post grid $slider = new avia_post_slider($atts); $slider->query_entries(); return $slider->html(); …
I am not sure where the problem is, but this solves it for the moment.
February 11, 2015 at 6:25 pm #394561Oh, and if you want to keep the default Enfold-Setting for the Blog Style: Grid Layout” you need add this to the index.php:42
$atts = array('post_type' => 'post', 'type' => 'grid', 'items' => get_option('posts_per_page'), 'columns'=> 3, 'class'=>'avia-builder-el-no-sibling', 'paginate'=>'yes');
- This reply was modified 9 years, 9 months ago by 2SINN.
February 12, 2015 at 5:24 am #394835February 13, 2015 at 2:52 pm #395756Hi,
it solved it for the moment. But it is really confusing, that using the blog element results in showing every possible post type. And there is no setting to limit it to ‘posts’. At least in the grid-view that seem to be the case.Felix
-
AuthorPosts
- The topic ‘Pages appear in Blog overview’ is closed to new replies.