• Hello World!

    I am using all in one seo, however it’s automatically generate meta description is failing me as my posts contain no description for it to generate! (its a video site).

    I want to be able to generate the meta description tag from the single_post title and the post’s tags.

    Is this possible? Either with a plugin or php I don’t mind.

    Many Thanks,
    J

Viewing 1 replies (of 1 total)
  • J,

    What you want to do should be possible with PHP. In the header, you’ll want to do something to the effect of:

    <?php
    if (is_single()) {
    global $post;
    $tags = wp_get_post_tags($post->ID);
    $t = implode(', ',$tags);
    echo "<meta title='description' value='".$post->post_title." ".$t'>";
    }
    ?>

    I haven’t tested the code but it should return the title and a list of tags seperated by comma’s.

Viewing 1 replies (of 1 total)
  • The topic ‘Meta Description – auto generated from title then post tags’ is closed to new replies.