This topic has 3 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #86303
     markob17
    Participant

    Hi,

    For some reason the related article section displays the current article. This doesn’t really make sense and probably isn’t ideal for SEO. Is there a way to prevent the article from showing itself as a related article?

    Thank you,

    #86344
     sharmstr
    Moderator

    What version are you using? The post query excludes the current post id

    COPY CODE
    
    /* Query args */
    $args=array(
        'post__not_in' => array($post->ID),
        'showposts'=> 8,
        'orderby' => 'rand' //random posts
    );
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #87057
     markob17
    Participant

    Hi,

    I am using the latest version of Kleo. Where do I have to put that code?

    Thanks!

    #87092
     sharmstr
    Moderator

    You dont put it anywhere. I was showing you that its already in Kleo.

    Do you have any plugins installed that filter the wp_query?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?