Forums

seo for each individual post (5 posts)

  1. Norbert
    Member
    Posted 7 years ago #

    Hi all,
    I need a possibility to modify the html head (meta tags etc.) of the page for each individual post if this post is requested from the archive.
    So far I found plugins which get the custom fields, but they always have to be used inside the loop. Has anyone an idea how to write something which can be called already inside the html head and gets custom fields from the post that was requested ?
    Thx. Norbert

  2. Joshua Sigar
    Member
    Posted 7 years ago #

    The following can be used outside the loop
    http://www.coffee2code.com/archives/2004/06/30/plugin-get-custom/

  3. moshu
    Member
    Posted 7 years ago #

    This plugin http://wordpress.org/support/topic/20393#post-116032 also seems to do what you are after.

  4. Norbert
    Member
    Posted 7 years ago #

    This works, but the custom field will be displayed all the time. I created a testfield in post1 and no matter which post you request it is on the page.
    But maybe this is a start and I can modify the code.
    I need a possibility to identify the requested post and get the custom fields from the database only for this post.

  5. Norbert
    Member
    Posted 7 years ago #

    Ah, the moisie plugin works, great !!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags