WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Google indexes category pages (which changes everyday) (7 posts)

  1. nelson-ray
    Member
    Posted 6 years ago #

    I noticed that Google indexes my website by its category page

    Example (website.url/page/2 or website.url/category/page/2)

    but the content changes everyday. Is there a way to have it indexed by article url instead? I am using fancy permalinks with just website.url/article_title .

    In my horizontal navigation bar at the top I do have actual url links for each different category on my website. Also right above the loop and after the loop I am using WP Digg Style Pagination for navigation. Could these have an effect on the way Google indexes my site?

  2. Kafkaesqui

    Posted 6 years ago #

    Somewhere in the <head>:

    <?php if( is_category() ) : ?>
    <meta name="robots" content="noindex" />
    <?php endif; ?>
  3. nelson-ray
    Member
    Posted 6 years ago #

    sorry for this basic question but <head> refers to the header.php or something else?

  4. Kafkaesqui

    Posted 6 years ago #

    In most themes, yes. But in general <head> refers to the portion of your theme templates where the <head> HTML element resides.

  5. nelson-ray
    Member
    Posted 6 years ago #

    thanks Kafkaesqui - got it. Would it be possible to exclude archive as well? like website.url/2006/10 ?

  6. Kafkaesqui

    Posted 6 years ago #

    <?php if( is_category() || is_archive() ) : ?>

    || = 'or' in PHP speak. More conditionals:

    http://codex.wordpress.org/Conditional_tags

  7. nelson-ray
    Member
    Posted 6 years ago #

    aha thanks !

Topic Closed

This topic has been closed to new replies.

About this Topic