Tag Info

New answers tagged

1

You can also do by this <?php the_post(); if ( is_home() ) { ?> <meta name="description" content="YOUR DESCRIPTION" /> <?php } elseif (is_single()) { ?> <meta name="description" content="<?php the_excerpt(); ?>" /> <?php } ?> this will set different description for home and other.



Top 50 recent answers are included