WordPress.org

Ready to get started?Download WordPress

Forums

How to include Custom Field - Meta tags in posts (13 posts)

  1. creativatorz
    Member
    Posted 9 years ago #

    Hi,

    Have just started with wordpress. Installation without a hitch. Fixed Permalinks to be search engine friendly.

    Need help in understanding how to include meta tags in my posts. Have already installed and activated Xfish Meta Tag Plugin. Am able to define keywords and description but they don't show up in individual post pages.

    I understand that the procedure that will pick up the corresponding values from the database and render the page needs to be called for this. Can anyone tell me where do I need to make the changes.

    Thanks for any help you can extend.

    Rishu

  2. Kafkaesqui

    Posted 9 years ago #

    I'm assuming xfish has a template tag you must call in your page template? This would go into the <head> portion of your page.

  3. creativatorz
    Member
    Posted 9 years ago #

    Hi,

    I am unable to locate the template tag and am not able to understand how to call the procedure. Could you kindly elaborate a wee bit more?

    I'd be very grateful for your help. Thanks.

  4. Kafkaesqui

    Posted 9 years ago #

    Well, I looked over the code for xfish_meta, and see it only needs to be activated in WordPress to work. Then you just add 'keywords' and 'description' as custom fields.

    However, I can't get it to work as advertised on my test site. Unless someone here has some input, I'd suggest contacting the dev:

    http://www.uberdose.com/journal/archives/2004/10/02/keywords-and-description-meta-tags-for-wordpress-xfish_meta/

  5. creativatorz
    Member
    Posted 9 years ago #

    Thanks for your time.
    I'd get in touch with the developer :)
    Meanwhile, if you have any other recommendation to get meta tags, especially keywords and description inserted in individual posts, please let me know. Thanks again.

  6. moisie
    Member
    Posted 9 years ago #

    I have a plugin which does pretty much the same thing, you may want to check it out: moisie_templates_metatags.php It seems to work alright.

    The keywords will still show up in your actual posts, I use another plugin to hide them but it's not ready for any sort of release.

  7. imedia
    Member
    Posted 9 years ago #


    <meta name="description" content="<?php echo htmlentities(get_the_excerpt()); ?>" />

    Will take the pre-generated excerpt for you posts, convert the appropriate characters to html, and spit out your excerpt as a description meta tag!

  8. Dirk
    Member
    Posted 9 years ago #

    Hi creativatorz, I'm the developer of xfish. Seems your email didn't come through.

    The thing with xfish is that you don't have to do anything but to define the custom fields 'keywords' and 'description' in your post, xfish will do the rest if you enabled it.

  9. greatbananas
    Member
    Posted 9 years ago #

    installed xfish and it worked fine.

    There's only one problem for me. For my frontpage, I have added my own meta tag description just for the frontpage in the index.php. Now I want to have seperate meta tag descriptions for each individual post pages.

    What xfish does is take all the meta tag descriptions from all the individual post pages and combines them to create a meta tag description for the frontpage. In my case, on the frontpage, I have two seperate meta tag descriptions, the one I made and the one xfish makes which is a problem.

    It would be a great feature for xfish if there is an option to disable the xfish generated meta tag description just for the frontpage. The reason is, I want to have a general description for my whole site when found on the search engine, and then each individual post will have it's own description when people find those pages on the search engines.

  10. slobizman
    Member
    Posted 9 years ago #

    Here is another plugin I just came across. Has anyone used it? The clarity of his explanation makes me feel somewhat confident about it.

    http://www.urbangiraffe.com/plugins/headspace/

  11. HiTman77
    Member
    Posted 8 years ago #

    Thanks all, I am looking for a keyword and and description meta generator that will populate meta content on the fly.
    (The reason for this is that I have hundreds of posts and I dont feel like editing each one just to add the meta data)

    I have the idea of the functionality.

    Basically the description tag would take the title & add a few keywords from each post to the end, or maby string a few of the post's titles together.

    The kewords tag would contain the real "logic" by weeding out a list of specified keywords (configurable in the backend), populating the keywords tag with say 25 keywords or + - 120 carachters.

    An example of keywords that could be weeded out would be "and" "but" "the" "when" "from" etc

    I have just landed in the world of wordpress after being involved with other OS CMS projects. I will keep a page live on http://www.haikona.com where I will take a crack at building the plugin myself. (but if anyone knows of one which may exist please let me know.

  12. Jonathan Landrum
    Member
    Posted 8 years ago #

    @greatbananas:

    What if you used a variation of imedia's suggestion:

    <meta name="description" content="<?php if ( is_home() ) { ?>(put your home description here)<?php } else { ?><?php echo htmlentities(get_the_excerpt()); ?>" />

    Wouldn't that work like you wanted it to?

    ~Jonathan

  13. mumkin
    Member
    Posted 8 years ago #

    Rich Boakes' Autometa plugin automatically generates keywords for a post; it has a dictionary of words to ignore, though not user-configurable. Only problem with autometa is that it will likely require you to make a minor edit to functions.php, or await the release of WP 2.01.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.