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
- Custom Taxonomy as checkbox or dropdown
- 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?
- WP_List_Table Inside Metabox Not Working on Submit
- 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 a post meta from a single table cell TablePress
- update custom post type meta from a shortcode
- Displaying Meta Box Image
- How loop through posts based on custom fields
- 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
- Displaying custom posts only if custom meta box’s date is not expired
- 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
- get_post_meta is returning image id
- 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
- wp_query check if integer exists in custom field’s array
- Get posts between custom dates
- How to filter wp_list_categories output with some custom post type meta query?
- How to duplicate entire custom post type
- A better way to add a meta box to custom post types
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- 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
- Listing custom terms in custom post meta
- Permalinks: custom structure for taxonomy – tags?
- Can’t publish custom post type – “You are not allowed to edit this post.”
- Meta Data for Custom Post Type not saving
- create custom meta box with default value
- Displaying a div from an assigned meta_value when on a page
- 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
- Custom post type suddenly stoped working after WordPress 5 update
- Removing numerous Meta boxes from numerous CPTs
- Reusable metabox backend and frontend
- 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
- Meta box data not saving
- Related posts meta_query CPT
- Meta box with front-end styling
- Sanitaizing Select Optin For Custom Post Type Metabox in WP
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- Cannot Save MetaBox Data in Custom Post Type
- 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
- best way to use custom taxonomy, post type and meta in a job system
- 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
- PHP Warning with Custom Fields
- Get meta values from parent post and save in child post
- Custom taxonomy with custom post type archive page
- Can’t retrieve custom post type taxonomy term to custom post type editor