nelson-ray
Member
Posted 2 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?
Somewhere in the <head>:
<?php if( is_category() ) : ?>
<meta name="robots" content="noindex" />
<?php endif; ?>
nelson-ray
Member
Posted 2 years ago #
sorry for this basic question but <head> refers to the header.php or something else?
In most themes, yes. But in general <head> refers to the portion of your theme templates where the <head> HTML element resides.
nelson-ray
Member
Posted 2 years ago #
thanks Kafkaesqui - got it. Would it be possible to exclude archive as well? like website.url/2006/10 ?
<?php if( is_category() || is_archive() ) : ?>
|| = 'or' in PHP speak. More conditionals:
http://codex.wordpress.org/Conditional_tags
nelson-ray
Member
Posted 2 years ago #