WordPress.org

Ready to get started?Download WordPress

Forums

Meta Template Tag (2 posts)

  1. ninad79
    Member
    Posted 7 years ago #

    Is there any template tag to add the custom fields into your html's meta tags?

    I am adding "keywords" and "description" as my custom fields..now how to make them show in the page meta fields?

  2. ZMAng
    Member
    Posted 7 years ago #

    What you want is described in this WordPress Codex article. In particular, you will want to pay attention to:
    get_post_meta($post_id, $key, $single);

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags