WordPress.org

Ready to get started?Download WordPress

Forums

Keywords and Description (7 posts)

  1. Inv_Trdr
    Member
    Posted 8 months ago #

    I am using Theme 2010 and I input some keywords and description in the custom fields. When I go to view age source I do not see the keywords or description. I used to see it before.
    Thank you.

  2. lettergrade
    Member
    Posted 8 months ago #

    Have you placed code in your template files to display the custom field values? If not, this is what you need to do. Custom field display code looks something like this:

    <?php get_post_meta($post_id, $key, $single); ?>

    You would replace the $key value with the name of your field. More info on Custom Fields here.

    Make sure you create a child theme first, so that your changes are not overwritten on the next 2010 update.

    If that's not what you're looking for (since you said you used to see this before), and you have already placed the code, then could you give us a few more details about placement, code, version, whether you've made recent changes to your setup, and the url of the site you're talking about?

  3. Inv_Trdr
    Member
    Posted 8 months ago #

    I use the keywords and description under "Custom Fields" when I edit a post or page. I thought they would show up automatically.

  4. lettergrade
    Member
    Posted 8 months ago #

    That's not standard use. Are you using a plugin to add this feature for you?

  5. Inv_Trdr
    Member
    Posted 8 months ago #

    Then why is it there? I thought the fields would add that to my page or post. I found and installed Simple Meta Tags Plugin and see the meta data now.
    Thank you.

  6. lettergrade
    Member
    Posted 8 months ago #

    Sure, glad you worked out a solution. I'm not sure what your previous setup was that made them display, so it's hard to comment. But in terms of 'why is it there,' just think of custom fields as a place you can enter custom data. Then you have to implement a method (there are lots! a few we've discussed above) to access and display that data. Lots of possibilities.

  7. Inv_Trdr
    Member
    Posted 8 months ago #

    If I used the default custom field how would I implement it exactly?
    Thanks.

Reply

You must log in to post.

About this Topic