• Hi All,
    I run http://www.buzzclickworthy.com and I have a custom post category (Headlines). I would like to automatically assign the same meta description to each post of this custom post type.
    Is there a simple hack or plugin that would do this? I am playing around with the Post Meta plugin for someone with my skills (minimal) there is a learning curve. 🙂
    Thanks!
    Steve

Viewing 2 replies - 1 through 2 (of 2 total)
  • Are you looking for the meta description that search engines use when they index your site?

    You can accomplish that by adding it to your header.php file

    You would use conditional tags to test if the post/page is a custom post type, and if so, output the customized standard meta description, and if not, use whatever one your plugin outputs.

    something like this:

    <?php if ( is_singular( 'headline' ) ) { ?>
    <meta name="description" content="your standard description here"/>
    <?php }  ?>

    SO if you’re using a plugin that crafts the meta description for you, like Yoast or All-in-One-SEO then just leave that field blank on the Headline posts, and fill it in on any non-Headline posts.

    As long as your header has wp_head() in it, then your plugin can hook in and display the meta description that you use for non-Headline posts.

    Thread Starter spciii

    (@spciii)

    Thanks Trisha!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with Custom Post Meta Description’ is closed to new replies.