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:
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- Show metabox in custom-post-template depending on taxonomy term?
- How can I display my custom metaboxes on a custom post template?
- Metabox not show in categories custom post type cmb2
- WP_Meta_Query object with conditionals
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Advanced search form with filters for custom taxonomies and custom fields
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- wp_dropdown_categories in custom post type with custom taxonomy
- Ordering posts having multiple post-meta date fields
- Changing the priority of a custom taxonomy’s metabox
- How do I remove all the metaboxes for a custom post type?
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- How Can I save multiple records in same meta key?
- Find callback function for custom taxonomy metabox
- Get all posts from custom post type and insert in select input as metabox
- Detect meta value changes when post is updated (post_updated)
- Unable to save custom taxonomy terms in a custom-built metabox
- I can’t set meta_key in my custom post type query
- How to select one major category (or custom taxonomy) for a custom post type?
- Can’t sort order of wp_query with 2 meta keys
- Having trouble with custom post type / meta box
- How can I include meta box content when searching?
- update custom post type meta from a shortcode
- Displaying Meta Box Image
- How to keep a check box in custom meta box for custom post type checked by default for add new post?
- How to add multiple featured image in meta box in post editor?
- Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
- Query for custom post type objects in a taxonomy and with a meta value
- Meta Box Only in CPT Edit Page, Not in Add New
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- Count posts with specific term_meta
- advanced search forms with 3 input text and that the main problem 3 input text
- Does WordPress limit the length of slug names for Post Meta or Terms?
- Pull a post based on a meta value in a custom post type
- Populate Custom Fields in a Custom Post Type?
- Custom meta box data array: foreach not working correctly?
- Undefined Variable – Custom Post Type Meta
- Populate dropdown from one custom post type inside another custom post type
- How to check if user meta field is empty in conditional else statement
- How to filter wp_list_categories output with some custom post type meta query?
- How to duplicate entire custom post type
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Show Custom Post Type meta boxes only on Page Edit
- How to make custom taxonomy into drop down select in a custom metabox
- Ordering values entered in Custom Taxonomies
- Permalinks: custom structure for taxonomy – tags?
- Meta Data for Custom Post Type not saving
- create custom meta box with default value
- Display different information of a custom post type
- WP_query – Filter by tax_query and meta_query using multiple select
- How to Echo Metadata Value in Currency Format
- Issue on Working with Metabox – Checkbox to enable Sale Items
- Filter posts by tax (dropdown) and meta value
- Why do I have to press the “Update” button twice to save my meta box values?
- how to show records that don’t have custom meta value
- Values from meta-box not on $_POST
- WP_Query of custom post type sorted by meta_key has unexpected results
- Removing numerous Meta boxes from numerous CPTs
- Get custom term meta problem on single post type
- How can I output WPAlchemy repeating fields meta values in my page template?
- Meta box data is saved but NOT displayed in the meta box text field. Why?
- Save Metabox Custom Field Value
- Sanitaizing Select Optin For Custom Post Type Metabox in WP
- Add a class to post_class if more than one post shares same meta_value_num
- Function to return values from metabox
- Add a meta field to the list of results for a custom post type
- Empty meta-box returns publishdate if no value is set?
- Custom Meta Box with variable number of fields
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Should I use a custom taxonomy or custom post type for grouping a list of panels associated with a group of tests?
- Dynamic template page calling shared taxonomies CPT or Plugin post type : how to clone taxonomy for plugin + set up dynamic shortcode
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- Use WP_query to match post types based on custom field values
- Show posts from WP Custom Post Type selected from a field in a metabox
- Get meta values from parent post and save in child post
- Custom taxonomy with custom post type archive page
- Add other all taxonomies as meta boxes to custom post type
- Saving Child Terms on front end not setting parent
- Order posts by meta value hiding posts instead of re-ordering
- Metaboxes in Loop
- Custom meta box data not saving
- Collect custom post in a calendar
- How to shows CPT which has specific meta key?
- Delete custom post type metadata without deleting the post in admin area
- Complex strcuture as CPT or taxonomy for use in woocommerce product variations [closed]
- Problem with ‘save_post’ hook not running
- WordPress custom post type
- Custom meta-box for all custom post types
- Edit post meta direct from post.php?
- Add different meta box based on taxonomy
- Howto: use existing post_meta as options for a different metabox (checkboxes or list)
- Values inside a custom field to determine which category posts to display
- Timetable of Custom Meta Data using Custom Post Type and Custom Taxonomy
- Advanced search form with filters for custom taxonomies and custom fields
- loop through custom post-type with two meta_keys
- Querying meta values within an array
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Use a Variable in update_post_meta as the $meta_key
- WP Query Conditionally query meta and taxonomy