Adding New Field To Admin Post and Database (3 posts)

  1. PlainJane
    Posted 5 years ago #

    I have added a new column to my wp_posts table in my database. How can I add a new custom field on the post page in my admin panel so that I can enter the data and it will be inserted into the new table column when I add or update a post? Thaks.

  2. GabrielCol
    Posted 5 years ago #

    Don't alter your database structure, when you will make an update everything will be lost.

    Use metaboxes instead. Have a look here: http://www.re-cycledair.com/wordpress-3-custom-post-type-meta-box-tutorial

  3. fonglh
    Posted 5 years ago #

    GabrielCol is right. Use the built in custom fields and create meta boxes for use in the admin interface.

    Here's the tutorial I used. http://www.deluxeblogtips.com/2010/04/how-to-create-meta-box-wordpress-post.html

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.