WordPress.org

Ready to get started?Download WordPress

Forums

How to create a new meta tag for the post? (2 posts)

  1. raladin
    Member
    Posted 5 years ago #

    Hello

    Among the meta tags that I would like to check for each post, is a new meta tag I would like to create, for which I will create a new column in the wp_posts table. The "area" tag. The reason I need this is to contain a numeric value, which will be stored with each post. This value will be read from the cookies of the user, and then stored in the database when a new post is created for that post, and it might change for the user from time to time depending on that cookies value. Then, when the posts will be retrieved, I want to check that value "area" in the wp_posts table in the database, and depending on that I will show the posts in the archive page.

    Could you please guide me how to implement this? How can I create my own meta tag for WordPress that could be used within my template or within all my WordPress?

    How can I add this value to the database with each single post created?

    How can I read it from the database for each post?

    I hope you can help me!

    Thanks alot in advance

  2. raladin
    Member
    Posted 5 years ago #

    Ok I will try solving the problem using Custom Fields instead.

Topic Closed

This topic has been closed to new replies.

About this Topic