WordPress.org

Ready to get started?Download WordPress

Forums

Description Plugin (6 posts)

  1. Jonathan Dingman
    Member
    Posted 9 years ago #

    I am looking for a plugin that will take the first XX amount of words from a post and set that as the description of the page, using something like <.. name="description" content="<?php post_description(); ?> for the actual header.php file. I am wanting this so posts can be indexed much easier and better by search engines. Purely search functionality and optimization.

    I know it's a simple plugin probably, I just don't know how to create it myself using the MySQL.

    I looked but didn't see one already, anyone know of one or want to make one?

  2. Jonathan Dingman
    Member
    Posted 9 years ago #

    Seems like there is this plugin.. http://www.uberdose.com/journal/archives/2004/10/02/keywords-and-description-meta-tags-for-wordpress-xfish_meta/ .. after doing some more searching, but I haven't tested it yet to see if it does exactly what I'm looking for.

    Please feel free to post if you know of a plugin doing exactly what I'm looking for.

  3. Lorelle
    Member
    Posted 9 years ago #

    Also check out:

    http://codex.wordpress.org/Meta_Tags_in_WordPress

    And remember, as much work as you put into meta tags, more and more search engines are not using them like they were due to abuses. FYI.

  4. Jonathan Dingman
    Member
    Posted 9 years ago #

    Thank you for that note, but I don't want the setting I have inside wordpress. I want it to actually PULL a little bit from the post itself. I want to do this so that the posts and articles are indexed correctly accordingly to the content inside of them, not based on the whole blog.

    Any other ideas or suggestions of a plugin for this?

    Something that will query mysql and pull XX amount of works from the post....

  5. Kafkaesqui

    Posted 9 years ago #

    I like doin' the occasional simple plugin...

    http://guff.szub.net/downloads/head-meta-desc.zip

    Extract head-meta-desc.php, upload that to your wp-content/plugins directory, and activate 'Head Meta Description' under Plugins.

    If your theme's templates already have wp_head() in the <head> element, it'll work right off. If not, insert:

    <?php wp_head(); ?>

    into the <head> in your templates (typically in header.php). Or alternatively:

    <?php head_meta_desc(); ?>

    There is one user-configurable variable in the plugin: $desc_length. This sets the number of words to *summarize* the post or Page content to. I recommend keeping it low (set to 20 by default).

  6. Jonathan Dingman
    Member
    Posted 9 years ago #

    EXACTLY what I'm looking for, thanks! I'll set it up soon.

Topic Closed

This topic has been closed to new replies.

About this Topic