You have created a custom field by altering the post table in the database. Custom fields in WordPress API are considered meta fields; such fields are stored in wp_postmeta
table and that is the table used by functions like add_post_meta()
and the rest of the functions and methods related with post custom/meta fields.
You can check how to work with meta/custom fields in the MetaData section of plugin developer handbook.
PD: Altering core database tables is considered a very bad practice.
Related Posts:
- Add custom fields to wp native gallery settings
- How can I add extra attribute in the ‘Page Attribute’ section in wp-admin for pages?
- Custom field/meta populated by dropdown of existing posts?
- Custom search: by post data and post metadata?
- Pass all custom fields through the same filter on post load?
- What is the advantage of the wp_options design pattern?
- update_user_meta: How many is too many?
- Correct Approach for Validating Custom Field Input
- Trying to perform complex custom field query with order by set to field value
- add custom fields to the post on admin side
- Query meta field using between
- Delete post based on a custom field?
- WordPress custom upload field error
- WP_Query multiple use of relation and/or
- Dynamic User State & City selection
- Update meta values with AJAX
- Custom fields to save multiple values
- Difference between ‘LIKE’ and ‘IN’ in meta queries
- get_user_meta Short Profile Section
- Plugin similar to Taxonomy Drill-Down for custom fields?
- WordPress Custom Fields by category
- Extend ‘The Events Calendar’ search to include custom fields [closed]
- Saving custom profile fields
- Default WordPress taxonomy (Tag) – How to add a custom field to form and save it to the database
- Add field to ‘Add User’ admin page
- Escaping Quotes
- Get Meta from Custom Field of Image URL
- How to sort category by custom field value
- wp_editor removes paragraph from custom meta box
- Using a checklist to search against metadata
- Move value from one meta key to another
- Where did the Add New Custom Field go?
- Will loading too many ACF Fields cause slow down?
- Admin meta Image Path
- How to associate 2 custom fields together (date & price for instance)?
- Using PHP to read WordPress Posts
- Validate data on attachment_fields_to_save
- Extra option in editor
- Custom field not updating when value is empty
- Can’t get metabox value (a url) returned using WPAlchemy
- How to add custom metadata text box dropdown to sidebar in Gutenberg editor for all post types
- How to create a dropdown select of all items in an ACF field group
- Custom post meta field effect on the performance on the post
- Is it possible to create a post from an NextGen Gallery image?
- Getting Custom Fields from WordPress JSON API [closed]
- Add first url to custom field on publish_post
- Use meta_query to get title of associated post
- Limits, not all post are showen when querying for posts by view count
- get_post_meta() retrieves meta from a specific post on pages, not the page currently viewed
- Get post ids sorted by meta_key
- Advanced Custom Fields Plugin – Unable to get URL from post_object
- Plot location on Google map using full address specified in custom field
- Display custom field value as a hyperlink
- Unable to get specific value from post meta
- pre_get_posts : only get posts by wp_usermeta value
- Display list of terms having the same custom field value
- How to display custom field in woocommerce email orders? [closed]
- Custom meta is not being saved
- Displaying Custom Field Array
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- IF Custom field value equals ZERO
- Custom Field Repeating When Using foreach
- Can I save post meta programatically without setting metaboxes?
- How to add a css class to custom field value?
- Show custom field on attachment page?
- Help setting up a sql query
- Advanced Custom fields not available yet during publish_page action
- Meta box values are displayed on Custom Fields list. Is it possible to hide them?
- Sort posts by custom field value
- Help with this custom field conditional if no field is set display nothing
- if statement display content even though no data
- How to pass custom field value to shortcode?
- custom comment_form fields not displaying
- Get custom post fields from multiple metaboxes
- Get author total post votes from post meta
- use custom field value as post category in loop
- Searching with Multiple (Parallel) Criteria on Custom Fields?
- Save custom field types with this function…?
- Compare ACF date field (if exists) and post date and order DESC
- How to display custom fields in hestia theme
- How to update only certain custom fields in a the cache of a page?
- variable not passed correctly to database using custom field
- WordPress Blocks, setAttributes not saving
- non-unique #_ajax_nonce id in browser console
- Trying to get custom field data in a simple plugin
- Sort columns in the ‘Pages’ dashboard overview
- Why does this javascript search function in the WordPress Admin not work?
- 4 Unique Random Posts based on Custom Field Values
- Page template is missing fields or is invalid when I updating the template
- Get meta value when the page is a blog archive
- Add Image With Changeable Link in Custom Field [closed]
- Create download page from post option link
- Add capability for editors to modify custom fields
- How to Pull Out Twitter Summary Data in other areas of my template?
- query specific posts according their custom fields, using sql SELECT
- Meta_query not filtering posts
- Should I use a Meta field or custom table?
- Rewrite Custom Fields url
- Associate an image with a post to show it in a slideshow
- Dynamic background image used in css after selector