Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Custom meta boxes ID prefix showing on first category but not others

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:

  1. How to modify the output of wp_terms_checklist when used within the built-in category metabox on edit posts?
  2. Only one category per post
  3. Is there an easy way to make a meta box have the tabs like the Categories meta box has?
  4. How to display non-hierarchical taxonomy as terms with checkboxes?
  5. How do the ‘tag’ and ‘category’ (default) taxonomies do ‘save_post’ action?
  6. Checklist of selected categories
  7. Changing Top Level Items into Radio Buttons in the Categories Meta Box?
  8. Admin Panel – Disable Moving Selected Terms To Top of Metabox
  9. How to Make a Categories Meta Box with Hierarchical Checkboxes on Frontend?
  10. Add search to list of categories in post editor
  11. Need help adding custom field to category
  12. Custom query with category exclusion and post-meta “whitelist”
  13. Save metabox checkboxes values to custom content type
  14. Category Search functionality on category metabox (wordpress admin)
  15. WP 3.0.5: Best way to add custom metaboxes for post categories?
  16. Render Selected Categories in Admin Edit Post Screen differently
  17. Hide post meta data on a specific category
  18. Want to hide some categories from the categories meta box in the post editor for the two specific user roles
  19. How to remove the “+Add Category” button from the Category metabox?
  20. How to show author name only if the post is in a specific category?
  21. Category pie diagram meta box in post editing page
  22. Limit a meta box to a specific category
  23. Automatically exclude categories from metabox based on title
  24. How to display singular form of category name?
  25. How can I edit the ‘Most Used’ tab in the categories meta-box to show another custom taxonomy?
  26. Use Tag input metabox style for Categories
  27. get_post_meta not working on category.php
  28. Hidde certain category from post meta
  29. Is there a way to only show Custom Meta Data on single posts from certain catagories
  30. Custom Meta Box (SELECT2) Not Saving Taxonomy Terms
  31. Get Meta Keys of Custom Categories
  32. How to restrict the amount of categories/post tags/terms for a post type post
  33. Filter categories/tags to display in multiple metaboxes for selection in back-end
  34. WP Category Meta plugin fix? [closed]
  35. how can we bring category metabox to Media Library/Upload New Media Page
  36. create relationship between posts from one category and posts from another category
  37. Different size video display for category page (smaller) & detail page (larger)
  38. Sending all categories associated with a post to Google Ad Manager for use with .setTargeting
  39. Taxonomy custom check box meta field not getting saved
  40. Remove “Category:” from Post meta
  41. Displaying data from custom fields on a specific category page
  42. Please tell how to stop the category from showing up on posts
  43. Get meta values from parent post and save in child post
  44. Meta Box: display single image on an archive-template
  45. How can I add metaboxs to Admin Bar?
  46. how to get postmeta info based on multiple categories?
  47. How can I hide the category term for posts with none set?
  48. How to add all categories into an array and extract the categories names and use it with a custom meta box
  49. Category Template – to be editable from the backend?
  50. Two related taxonomies. how to filter terms in second taxonomy depending on selected term in first taxonomy on Post edit page?
  51. exclude certain categories form archive widget
  52. wp_get_post_categories not work currently on loop.php
  53. Add properties to term object
  54. how to remove alphabetical order of category in WordPress?
  55. excude a specidic category from showing in the “relative posts”
  56. get_object_term_cache duplicate terms after update to wordpress 6
  57. Why is $_POST empty when saving custom Meta Box?
  58. How to use category slug with a regular page
  59. Show posts from a single category by default using wordpress.com
  60. How to avoid saving empty data to sql while using add_meta_box
  61. WordPress PageNavi Plugin not working in category.php
  62. Category post count is not correct
  63. Display all categories but only if they have posts in them that have a specific tag assigned
  64. Sort posts by child category name
  65. How to fix select filter on category
  66. 404 on category URL
  67. Disable Category Taxonomy
  68. Intermittent Gutenberg 504 Gateway Timeout when calling REST route to retrieve categories
  69. Duplicate new categories across multisite network
  70. display specific category when website loads
  71. wp_dropdown_categories() works correctly but the list is not filtered in admin for custom post type. What is the problem?
  72. Excluding current category from sidebar’s post widget, elementor, query-id
  73. How do you get sticky posts to work with categories?
  74. Migrate the posts of a category to another blog as a custom taxonomy
  75. Woocommerce only display child category when parent is checked (on add new product page)
  76. I can not display meta value in extras.php and template-tags.php
  77. Include last post date in get_categories loop
  78. get list of category from a specific post with get_term()
  79. How to exclude certain categories showing in Gutenberg?
  80. Categories not posts at the frontpage
  81. Conditional widget for theme template file
  82. Placing category specific banner/html at top of respective category pages
  83. Help to display the current categories and tags of a post
  84. remove url from categories
  85. how to style show_count in wp_list_categories()
  86. Custom Post Type meta data getting deleted on bulk editing taxonomies
  87. Problem with pagination block in Gutenberg
  88. How to display WooCommerce category image in my category page banner as a background?
  89. Why are my newly added categories not showing up when creating a post?
  90. It is possible to display related posts from same category as the current post?
  91. Product category display in tabs
  92. Using custom structure prefix showing 404 for sub-categories
  93. Pull in an “Include” file based on a WordPress Category ID
  94. Assignt automatically two categories by author
  95. WordPress Default Category and Custom Taxonomy Selected Attribute not Working After Searched in wp_dropdown_categories Array
  96. Private categories in WordPress
  97. Categories are not available AT ALL under Menus
  98. Order category posts by last word of custom field
  99. How to add the .html extension to the category?
  100. Show the number of the post
Categories categories Tags categories, metabox, oembed, post-meta
Plugin settings are saving but the fields
Child Theme’s Read More Text

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress