Support » Fixing WordPress » Meta Description Help With No Plugin

  • <meta name="description" content="<?php if ( is_single() ) {
            single_post_title('', true);
        } else {
            ('description');
        }
        ?>" />

    If any kind expert in here could help me if the above code correct if not how to add it right way.

    and how to avoid duplicate meta descriptions by using above code like only show the description i want in frontpage rest of the pages and posts just title as the description.

    Thank You.

  • The topic ‘Meta Description Help With No Plugin’ is closed to new replies.