/ Published in: PHP

This helps to avoid the "duplicated content" indexation by google on wordpress comment pages by changing the post content to the_excerpt ONLY in comment pages.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php the_content('Continúa Leyendo'); ?> <?php else: ?> <?php the_excerpt(); ?> <?php endif; ?> <?php }; ?>
Comments
