Support » Fixing WordPress » Keywords and Description

  • 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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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?

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

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

    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.

    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.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Keywords and Description’ is closed to new replies.