Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #586806

    Hi Rikard,
    I am just opening a new thread as suggested on this post.

    As explained, I have the same problem as marcelwatchter and I have added the ‘Related posts’ section to a post by adding the ‘Blog Posts’ element to the bottom (as suggested). It’s showing all the related posts but it’s also showing the current post on that section. Is there a way I can avoid showing the current post on the ‘Related posts’ section? Please note that I have selected ‘Do not allow duplicate posts’ under the ‘Offset Number’ field, but it’s still showing the current post.

    • This topic was modified 8 years, 8 months ago by LiquidBrand.
    #588426

    Hey LiquidBrand!

    this is not happening for me:

    View post on imgur.com

    Please clear browser cache and hard refresh a few times. Check on another computer as well.

    Best regards,
    Andy

    #588698

    Hi Andy,

    It’s not happening now (for this particular post) because I have been adding lots of other posts since then and I didn’t realise that it will affect this example. Sorry, my bad!

    Well, this problem only happens to posts that falls on the first 6 posts on a category. See links below for another example.

    • This reply was modified 8 years, 7 months ago by LiquidBrand.
    #588993

    Hi!

    ry to deactivate all plugins, to check if one is causing this issue and let us know about your results. If that does not help there might be some corrupted files, so please delete all theme files completely via FTP, before installing a fresh copy from your themeforest account: http://kriesi.at/documentation/enfold/install-enfold-over-ftp/

    Best regards,
    Andy

    #589556

    Hi Andy,

    I have deactivated all the plugins and I’m still having the same problem. Before I go on to re-installing the theme files, can you please confirm that the problem that I am facing here is not due to the fact that I am using the ‘Advanced Layout Editor’ ?

    #589684

    Hi!

    we can’t confirm that, as it would be almost impossible without knowing 100% the cause of the issue. It won’t take much time and you won’t loose any settings by deleting all theme files and replacing them afterwards with a fresh copy from your themeforest account.

    Best regards,
    Andy

    #590568

    Hi Andy,

    I have just replaced all the theme files via FTP as suggested and I’m still having the same problem. Any idea what can I try next?
    Kind regards,
    Elain

    #590741
    #591269

    Hi Andy,

    I have added the code provided by Josue here on to my functions.php (under my child theme). I have also deactivated the Offset on the blog post element.
    This has resolved the ‘duplication’ issue however, it somehow hides all my main blog pages & archives. See links below:

    #592382

    Hi Andy/Josue,

    I am just wondering if you guys had a chance to look at this problem at all? Can someone get back to me asap? Thanks.

    Kind Regards,
    Elain

    #593693

    Hey!

    We modified the code in the functions.php file a bit:

    /*
    Removing duplicate blog post (Blog post element must not have offset activated)
    */
    add_filter('avia_post_slide_query', 'enfold_customization_query_custom');
    function enfold_customization_query_custom( $query ) {
        global $post;
        if ( is_single() ) {
            $query['post__not_in'] = array($post->ID);
        }
        return $query;	
    }

    It should fix the blog overview page issue.

    Best regards,
    Ismael

    #594069

    Thank you so much Ismael – That’s perfect! It’s all good now :)

    Kind Regards,
    Elain

    #594787

    Hi Elain,

    Great, glad we could help :-)

    Best regards,
    Rikard

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.