If I understand correctly you want to get the taxonomies associated with a custom post type object, not with a specific single post. To do that you can use get_object_taxonomies(). For example, to get the names of the associated taxonomies to “my-custom-post-type”:
$taxonomies = get_object_taxonomies( 'my-custom-post-type', 'names' );
foreach( $taxonomies as $taxname ) {
echo $taxname;
}
I think you can not do the same for meta fields because meta fields are associated with a specific single post not with a post type object. You will have to hardcode the relationship between metafields and custom post type.
Related Posts:
- WordPress database error: [Not unique table/alias: ‘wp_postmeta’]
- How much faster is a tax query than a meta query?
- Use custom posts as taxonomy term meta replacement?
- Is it possible to sort the post based on a custom field?
- List Custom Taxonomy Values according to a Post Meta Value
- get_the_terms() to show all custom taxonomies
- Single reusable value for post meta: Custom Taxonomy or Post Meta?
- What is faster: custom taxonomy or serialized post-meta for db retrieval? (over 60,000 posts)
- Is it possible to store Json data in post_meta and manipulate
- Add Custom Taxonomy for Blog Meta Info
- How to separate posts in loop?
- Creating terms vs custom post meta to save data?
- Does using custom taxonomy is more CPU efficient than using meta_data?
- wp_query not resetting, last post hanging
- Count of posts by different parameters?
- WooCommerce custom taxonomy as meta?
- Sort taxonomy page alphabetically by meta rather than default post date
- Convert post meta to custom taxonomy?
- Count tags for current post and save into custom meta field (and update it on post edit)
- Is it possible to sort the post based on a custom field?
- Custom post type term names with ampersand in the term name
- Looking for suggestions on creating simple database (Help!!)
- Where to put a migration script to switch post information?
- Update fields with post object and custom tax with wp_insert_post
- How can I show custom field according to taxonomy?
- Custom taxonomy with custom meta value is not sorting correctly (query returns the same value for orderby regardless of sort column click)
- Remove taxonomy base or term from url
- Bulk term assignment for attachment taxonomies
- Why is my working Custom Taxonomy not in get_taxonomies array?
- Taxonomy slug by term ID
- How to enable hierarchical permalinks for hierarchical taxonomies
- Create taxonomy with meta term using the WP Rest Api
- Remove description in custom taxonomy edit screen
- Taxonomies not appearing in columns on dashboard
- How to output the taxonomy term name in a widget
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- Make Custom Taxonomy Category Use Parent Template
- How to call custom taxonomy categories with shortcodes
- How to get terms of a custom post type in a loop inside footer.php
- How do I make a custom taxomony appear like tags?
- Refine user taxonomy query based on role
- Get ID and slug from taxonomy object
- List the number of posts for each custom taxonomy and specific custom field value
- How can I conditionally change the title of a taxonomy meta box?
- Recreating the hierarchy of taxonomies for a dropdown form menu?
- meta_key & meta_value not working with get_pages and custom taxonomy
- showing custom taxonomies w/custom post type
- Display sub categories and their data of a taxonomy
- Exclude Taxonomy Terms from Template Via Back End?
- How to overwrite registered taxonomy url from vendor plugin in child theme
- Dynamic loading of Archive content based on custom taxonomy term name
- Checking return with WP Error
- Add multiple taxonomy filters to edit.php that support search
- Set taxonomy fields on post with AJAX
- Custom Taxonomy index/archive hierarchy
- Show related posts that match two categories
- Failure to add term meta
- Removing “s” from search with custom parameters
- get_term_children returns unknown int though term has no child
- Custom taxonomy pagination
- Get the taxonomy of the post
- Custom taxonomy not showing terms in post area
- Get object for a few selected taxonomies
- Problem with wordpress pagination
- link directly to custom post if there is only one in the taxonomy
- Add a term to list in block editor taxonomy sidebar
- Show only the sub-categories (and their content) of the current custom taxonomy with ‘taxonomy.php’
- How do I make multiple dependent input fields that use the jquery autocomplete function?
- Also show terms that are related to draft and pending posts
- Breaking Bootstrap Grid at Post Count with Tax Terms
- Custom taxonomy page not working
- What is the best way to change sidebars based on custom taxonomy terms?
- Displaying the post count of all custom taxonomy terms in a list format
- How to update post taxonomies (Creating a custom UI for Custom Taxonomy)
- Taxonomy dropdown metabox in the back-end
- Taxonomy archive uses incorrect template when query strings are used
- wordpress mysql / wpdb ajax load more for terms help
- Get child product categories from parent product category for CUSTOM TAXONOMY archive page
- How to get related taxonomies based on a category with mysql query?
- Reorder a page of posts of a certain taxonomy/value by a custom field
- Get children of taxonomies
- Yoast – Custom Taxonomy – primary category
- ACF Field, hide taxonomy title and image when no nothing selected in post
- Unregistered taxonomy apears still as emtpy filter list
- How to paginate with an query var appended to permalink?
- Use custom taxonomy terms as parent for pages
- Custom taxonomy return 404
- switch statement for taxonomy content
- Where is defined a custom register_taxonomy? [closed]
- Differentiate Parent & Child of Custom Taxonomy
- Listing all selected terms for custom taxonomies on a post
- Multiple Taxonomy in URL/Query – No Custom Post Type
- Calling Custom Taxonomy Dropdown in Form
- Advanced search form with filters for custom taxonomies and custom fields
- Displaying Custom Taxonomy List Posts By Slug?
- Show different sidebar on taxonomy pages when a default is set
- How can I get parent term from a child term
- Custom Taxonomy – Archive for the whole Custom Taxonomy (and not just single term)?
- ACF Display Taxonomy Image Field
- Guest author – URL, base and custom taxonomy – working but unstable