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

Displaying Metabox value (custom post type taxonomy)

Try this

  • For single template

global $post;
echo get_post_meta( $post->ID , 'sm_taxonomy', true );

OR

  • For archive template

if ( have_posts() ) : while ( have_posts() ) : the_post();
echo get_post_meta( get_the_ID() , 'sm_taxonomy', true );
endif;

Related Posts:

  1. Custom Meta Boxes – Nonce Issue – Move to trash issue
  2. Show metabox in custom-post-template depending on taxonomy term?
  3. How can I display my custom metaboxes on a custom post template?
  4. Metabox not show in categories custom post type cmb2
  5. WP_Meta_Query object with conditionals
  6. Custom Post Type meta data getting deleted on bulk editing taxonomies
  7. Advanced search form with filters for custom taxonomies and custom fields
  8. Remove Custom Taxonomy Metabox from Custom Post Type Screen
  9. Custom Taxonomy as checkbox or dropdown
  10. wp_dropdown_categories in custom post type with custom taxonomy
  11. Ordering posts having multiple post-meta date fields
  12. Changing the priority of a custom taxonomy’s metabox
  13. How do I remove all the metaboxes for a custom post type?
  14. WP_List_Table Inside Metabox Not Working on Submit
  15. Custom Queries: Joining On Meta Values From Two Custom Post Types
  16. How Can I save multiple records in same meta key?
  17. Find callback function for custom taxonomy metabox
  18. Get all posts from custom post type and insert in select input as metabox
  19. Detect meta value changes when post is updated (post_updated)
  20. Unable to save custom taxonomy terms in a custom-built metabox
  21. I can’t set meta_key in my custom post type query
  22. How to select one major category (or custom taxonomy) for a custom post type?
  23. Can’t sort order of wp_query with 2 meta keys
  24. Having trouble with custom post type / meta box
  25. How can I include meta box content when searching?
  26. update a post meta from a single table cell TablePress
  27. update custom post type meta from a shortcode
  28. Displaying Meta Box Image
  29. How loop through posts based on custom fields
  30. How to keep a check box in custom meta box for custom post type checked by default for add new post?
  31. How to add multiple featured image in meta box in post editor?
  32. Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
  33. Displaying custom posts only if custom meta box’s date is not expired
  34. Query for custom post type objects in a taxonomy and with a meta value
  35. Meta Box Only in CPT Edit Page, Not in Add New
  36. get_post_meta is returning image id
  37. need advice on how to do a lists using custom post types – taxonomy vs postmeta
  38. Count posts with specific term_meta
  39. advanced search forms with 3 input text and that the main problem 3 input text
  40. Does WordPress limit the length of slug names for Post Meta or Terms?
  41. Pull a post based on a meta value in a custom post type
  42. Populate Custom Fields in a Custom Post Type?
  43. Custom meta box data array: foreach not working correctly?
  44. Undefined Variable – Custom Post Type Meta
  45. Populate dropdown from one custom post type inside another custom post type
  46. How to check if user meta field is empty in conditional else statement
  47. wp_query check if integer exists in custom field’s array
  48. Get posts between custom dates
  49. How to filter wp_list_categories output with some custom post type meta query?
  50. How to duplicate entire custom post type
  51. A better way to add a meta box to custom post types
  52. Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
  53. Meta Query Filtering not working on Custom Meta Box using Radio Buttons
  54. Show Custom Post Type meta boxes only on Page Edit
  55. How to make custom taxonomy into drop down select in a custom metabox
  56. Ordering values entered in Custom Taxonomies
  57. Listing custom terms in custom post meta
  58. Permalinks: custom structure for taxonomy – tags?
  59. Can’t publish custom post type – “You are not allowed to edit this post.”
  60. Meta Data for Custom Post Type not saving
  61. create custom meta box with default value
  62. Displaying a div from an assigned meta_value when on a page
  63. Display different information of a custom post type
  64. WP_query – Filter by tax_query and meta_query using multiple select
  65. How to Echo Metadata Value in Currency Format
  66. Issue on Working with Metabox – Checkbox to enable Sale Items
  67. Filter posts by tax (dropdown) and meta value
  68. Why do I have to press the “Update” button twice to save my meta box values?
  69. how to show records that don’t have custom meta value
  70. Values from meta-box not on $_POST
  71. WP_Query of custom post type sorted by meta_key has unexpected results
  72. Custom post type suddenly stoped working after WordPress 5 update
  73. Removing numerous Meta boxes from numerous CPTs
  74. Reusable metabox backend and frontend
  75. Get custom term meta problem on single post type
  76. How can I output WPAlchemy repeating fields meta values in my page template?
  77. Meta box data is saved but NOT displayed in the meta box text field. Why?
  78. Save Metabox Custom Field Value
  79. Meta box data not saving
  80. Related posts meta_query CPT
  81. Meta box with front-end styling
  82. Sanitaizing Select Optin For Custom Post Type Metabox in WP
  83. How to retrive Custom Post Type Meta Fields in Custom WP_Query
  84. Cannot Save MetaBox Data in Custom Post Type
  85. Add a class to post_class if more than one post shares same meta_value_num
  86. Function to return values from metabox
  87. Add a meta field to the list of results for a custom post type
  88. best way to use custom taxonomy, post type and meta in a job system
  89. Empty meta-box returns publishdate if no value is set?
  90. Custom Meta Box with variable number of fields
  91. WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
  92. Should I use a custom taxonomy or custom post type for grouping a list of panels associated with a group of tests?
  93. Dynamic template page calling shared taxonomies CPT or Plugin post type : how to clone taxonomy for plugin + set up dynamic shortcode
  94. Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
  95. Use WP_query to match post types based on custom field values
  96. Show posts from WP Custom Post Type selected from a field in a metabox
  97. PHP Warning with Custom Fields
  98. Get meta values from parent post and save in child post
  99. Custom taxonomy with custom post type archive page
  100. Can’t retrieve custom post type taxonomy term to custom post type editor
Categories custom-post-types Tags custom-post-types, custom-taxonomy, meta-query, metabox, post-meta
add_filter the_content in functions.php not working
How to side load an image from a service

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