Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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
    Felix

    #391983

    Hi 2SINN!

    Could you please provide a link to the site in question?

    Cheers!
    Rikard

    #391985
    This reply has been marked as private.
    #392453

    Hi!

    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,
    Ismael

    #392955

    Hi Ismael,

    it happens in the blog grid. Here is a screenshot:
    https://www.dropbox.com/s/3mdlwdiahq8vn91/pages-in-blog-overview.jpg?dl=0

    Regards
    Felix

    #394082

    Hey!

    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!
    Elliott

    #394544

    Hi 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.

    #394561

    Oh, 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.
    #394835

    Hi 2SINN!

    So that solved your problem?

    Cheers!
    Rikard

    #395756

    Hi,
    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Pages appear in Blog overview’ is closed to new replies.