What do you mean “adds it to each post”?
The problem is that Google indexes duplicate urls because it can spider the pages with the action parameter.
There are three ways to fix this:
– using the canonical meta tag
– telling the Google spider to ignore the action, redirect_to and instance parameters in Webmaster Tools (See: Site configuration – Settings – Parameter handling)
– adding rel=nofollow to all the links that are generated by the Theme My Login in the plugin code
Jeff, it would be brilliant if you could include the nofollow tag in the links that are generated by the widget. (the register and lost password links).
I see. Will do in next release.
Hi,
I’ve got this exact same problem and I’m glad that I’m not the only one. I’ve got 180 pages indexed with Google 3 times…
Thanks for the ideas Johan, I’ve used the Webmaster Tools parameter ignore function to see if that solves it… It had only picked up ‘action’ and ‘instance’, so I’ve set them to ignor. Will this alone drop the pages from their index and prevent crawling?
In the meantime, that seems like a bit of a ‘botch job’… Where in the theme-my-login-widget.php file can I edit links to nofollow?
Also is there not a way that we can put ‘noindex’ on these pages? That seems to be the only proper way to deal with this…
Many Thanks.
In the meantime, you can create your own templates for the plugin and add the parameters to the links yourselves.
Just simply copy the templates from theme-my-login/templates
into your current theme’s directory. The change $template->the_action_links() to the following:
<?php if ( $action_links = $template->get_action_links( $args ) ) {
echo '<ul class="tml-action-links">' . "\n";
foreach ( (array) $action_links as $link ) {
echo '<li><a href="' . esc_url( $link['url'] ) . '" rel="nofollow">' . esc_html( $link['title'] ) . '</a></li>' . "\n";
}
echo '</ul>' . "\n";
} ?>