Duplicate posts in wordpress.

by 4 replies
5
Hello Warriors,
I am building a website using wordpress , but when I use one of my post as a sticky page , it also shows in category page , I don't want any kind of duplicates on my website, I just want it to show on homepage only, can someone help , here is the index.php code : Header.php - Pastebin.com
#programming #duplicate #posts #wordpress
  • Get category page to just show Tittles OR noindex that page.
  • Banned
    [DELETED]
  • Thanks for your help Fernando , but is there anyway to change it from coding ?
  • Articles that appear in your categories or tags on WordPress, as well as your main page, do not constitute duplicate content. They are the same content on the same site accessed via different URLs.

    Duplicate content is the same article appearing on a different domain.

    This article goes into more detail (it also contains a quote from Google on the subject):

    Duplicate Content on WordPress | WealthyDragon

    Cheers,

    Martin.
  • If you would like to set category pages to noindex you could add a conditional tag to the header

    <?php if(is_category()) { echo '<meta name="robots" content="noindex,follow" />'; } else { echo '<meta name="robots" content="index,follow" />'; } ?>

    It will display the noindex on cat pages and index on all the rest.
  • Banned
    [DELETED]

Next Topics on Trending Feed

  • 5

    Hello Warriors, I am building a website using wordpress , but when I use one of my post as a sticky page , it also shows in category page , I don't want any kind of duplicates on my website, I just want it to show on homepage only, can someone help , here is the index.php code : Header.php - Pastebin.com