From what I can tell, this stems from your use of get_post_field(), which is reserved for fields found in the posts table of the database (ie: built-in to WordPress, rather than custom fields). For custom fields you should use get_post_meta().
Related Posts:
- How to modify the output of wp_terms_checklist when used within the built-in category metabox on edit posts?
- Only one category per post
- Is there an easy way to make a meta box have the tabs like the Categories meta box has?
- How to display non-hierarchical taxonomy as terms with checkboxes?
- How do the ‘tag’ and ‘category’ (default) taxonomies do ‘save_post’ action?
- Checklist of selected categories
- Changing Top Level Items into Radio Buttons in the Categories Meta Box?
- Admin Panel – Disable Moving Selected Terms To Top of Metabox
- How to Make a Categories Meta Box with Hierarchical Checkboxes on Frontend?
- Add search to list of categories in post editor
- Need help adding custom field to category
- Custom query with category exclusion and post-meta “whitelist”
- Save metabox checkboxes values to custom content type
- Category Search functionality on category metabox (wordpress admin)
- WP 3.0.5: Best way to add custom metaboxes for post categories?
- Render Selected Categories in Admin Edit Post Screen differently
- Hide post meta data on a specific category
- Want to hide some categories from the categories meta box in the post editor for the two specific user roles
- How to remove the “+Add Category” button from the Category metabox?
- How to show author name only if the post is in a specific category?
- Category pie diagram meta box in post editing page
- Limit a meta box to a specific category
- Automatically exclude categories from metabox based on title
- How to display singular form of category name?
- How can I edit the ‘Most Used’ tab in the categories meta-box to show another custom taxonomy?
- Use Tag input metabox style for Categories
- get_post_meta not working on category.php
- Hidde certain category from post meta
- Is there a way to only show Custom Meta Data on single posts from certain catagories
- Custom Meta Box (SELECT2) Not Saving Taxonomy Terms
- Get Meta Keys of Custom Categories
- How to restrict the amount of categories/post tags/terms for a post type post
- Filter categories/tags to display in multiple metaboxes for selection in back-end
- WP Category Meta plugin fix? [closed]
- how can we bring category metabox to Media Library/Upload New Media Page
- create relationship between posts from one category and posts from another category
- Different size video display for category page (smaller) & detail page (larger)
- Sending all categories associated with a post to Google Ad Manager for use with .setTargeting
- Taxonomy custom check box meta field not getting saved
- Remove “Category:” from Post meta
- Displaying data from custom fields on a specific category page
- Please tell how to stop the category from showing up on posts
- Get meta values from parent post and save in child post
- Meta Box: display single image on an archive-template
- How can I add metaboxs to Admin Bar?
- how to get postmeta info based on multiple categories?
- How can I hide the category term for posts with none set?
- How to add all categories into an array and extract the categories names and use it with a custom meta box
- Category Template – to be editable from the backend?
- Two related taxonomies. how to filter terms in second taxonomy depending on selected term in first taxonomy on Post edit page?
- exclude certain categories form archive widget
- wp_get_post_categories not work currently on loop.php
- Add properties to term object
- how to remove alphabetical order of category in WordPress?
- excude a specidic category from showing in the “relative posts”
- get_object_term_cache duplicate terms after update to wordpress 6
- Why is $_POST empty when saving custom Meta Box?
- How to use category slug with a regular page
- Show posts from a single category by default using wordpress.com
- How to avoid saving empty data to sql while using add_meta_box
- WordPress PageNavi Plugin not working in category.php
- Category post count is not correct
- Display all categories but only if they have posts in them that have a specific tag assigned
- Sort posts by child category name
- How to fix select filter on category
- 404 on category URL
- Disable Category Taxonomy
- Intermittent Gutenberg 504 Gateway Timeout when calling REST route to retrieve categories
- Duplicate new categories across multisite network
- display specific category when website loads
- wp_dropdown_categories() works correctly but the list is not filtered in admin for custom post type. What is the problem?
- Excluding current category from sidebar’s post widget, elementor, query-id
- How do you get sticky posts to work with categories?
- Migrate the posts of a category to another blog as a custom taxonomy
- Woocommerce only display child category when parent is checked (on add new product page)
- I can not display meta value in extras.php and template-tags.php
- Include last post date in get_categories loop
- get list of category from a specific post with get_term()
- How to exclude certain categories showing in Gutenberg?
- Categories not posts at the frontpage
- Conditional widget for theme template file
- Placing category specific banner/html at top of respective category pages
- Help to display the current categories and tags of a post
- remove url from categories
- how to style show_count in wp_list_categories()
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Problem with pagination block in Gutenberg
- How to display WooCommerce category image in my category page banner as a background?
- Why are my newly added categories not showing up when creating a post?
- It is possible to display related posts from same category as the current post?
- Product category display in tabs
- Using custom structure prefix showing 404 for sub-categories
- Pull in an “Include” file based on a WordPress Category ID
- Assignt automatically two categories by author
- WordPress Default Category and Custom Taxonomy Selected Attribute not Working After Searched in wp_dropdown_categories Array
- Private categories in WordPress
- Categories are not available AT ALL under Menus
- Order category posts by last word of custom field
- How to add the .html extension to the category?
- Show the number of the post