Need Wordpress Category Description Code Help

by 13 replies
15
What is the necessary code to have the wordpress category page description only on one page and not all of them thus creating duplicate content?

For instance, my description is one page 1, 2, 3, etc.

What code only designates this to the first page? Would that code be altered on the archive.php page?
#programming #category #code #description #wordpress
  • What theme are you using? That could affect the display behavior.

    Yes, archive.php is the correct file

    Unless you have very little other content - I don't think small amounts of duplicate content will affect your site rankings - though I am curious why the category description shows up on so many pages. How have you set those pages..and what content is on those pages?
    • [1] reply
    • I paid someone to do a custom theme a few years back.

      The reason I brought up duplicate content is because in google webmaster tools they are counting just that one category as 15 duplicate pages since I have so many posts in that one category.

      It's also counting my other categories as duplicate content too.

      I see this code in the archive.php file but I don't know why it would put the description on every single page within a category.

      <?php echo category_description(); ?>

      I'm not sure what you mean by how have I set those pages.

      I have four categories I blog about and place the content in at least one of those categories.

      I don't really see anything within my wordpress panel that allows me to set anything for categories except for where you can add new ones and edit existing ones.
      • [1] reply
  • Check out some plugins that gives you the proper archiving functions.
  • That's right.
    It rewards reading into database schema of wordpress before you mess it up =) Database Description « WordPress Codex
  • Change

    echo category_description();

    to

    <?php if ($paged < 2 ) {
    echo category_description();
    } ?>

    That should work
    • [ 1 ] Thanks
    • [1] reply
    • It worked! Thank you so much!

      Hopefully this will clear this duplicate content issue with Google.

Next Topics on Trending Feed