I think your problem lies with the use of get_object_taxonomies( $object, $output )
. If you have a look at the codex, the $object
parameter should be
Name of the post type, or a post object (row from posts)
As your code currently stands, you are using the taxonomy name, not post type. If you print $customPostTaxonomies
with
print_r( $customPostTaxonomies);
you get Array()
, that is why you get no output.
When you change get_object_taxonomies('jobfelder');
to get_object_taxonomies('jobboerse');
, your code works and output the names of the taxonomies which is related to your custom post type ‘jobboerse’
EDIT
Thanks to @cfx
Better be safe than sorry when registering custom taxonomies for custom post types. Use
register_taxonomy_for_object_type()
right after the function (emphasis added) to interconnect them.
Related Posts:
- Display all posts in a custom post type, grouped by a custom taxonomy
- What are the differences between custom post type and custom page templates?
- Ordering Posts List By Taxonomy Terms?
- Templates for Custom Post Types and Custom Taxonomies
- WordPress Custom Post Type Category Page
- post count is wrong when using same taxonomy for 2 different CPT
- Issues when rewrite rules collide?
- Add links to post categories and taxonomies in wysiwyg link modal?
- Query multiple taxonomy in Custom Post Type
- automatically create taxonomy with same name as post title
- Archive page for taxonomy of custom post type
- CPT tax slug conflict with post type slug
- Custom post type archive with dynamic taxonomy filtering – is it possible
- Multiple Archive Pages for Custom Post Types AND Taxonomies
- Custom Taxonomy Breadcrumb Navigation
- Remove “-2” from a Toolset Types URL with the same post name
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Exclude current post when getting related post on custom post type and taxonomy
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Ordering Custom Post Types with WP_Query
- Is it possible to make tag archive page specific to Custom Post Type?
- Multiple portfolios with one custom post type?
- Custom Post Type and Taxonomy combination
- How can I display my custom metaboxes on a custom post template?
- How to specify URLS for custom posts & taxonomies
- Taxonomy.php Not Showing Posts
- How to check the terms in single custom post type template
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Posts from all the categories are being displayed instead of particular category
- Categories sorting
- WP_Query most viewed posts, in multiple Post Types, last 30 days, excluding a specific taxonomy term
- Allow user to set custom order to a list of custom taxonomies?
- Disable block with taxonomies at post page
- search also in taxonomy, tags and custom fields
- Custom Post Types, URL rewrite on multiple CPTs
- redirecting improperly after updating custom taxonomy term when referring from CPT edit page
- Sort and filter custom post type posts by custom taxonomy
- Terms showing up in object cache on unrelated pages
- Custom post type pagination 404
- Best way to specify “article type” in URL
- List Posts By Custom Taxonomy
- Many to many to many custom post relationships
- Iterating through Object Array to customise display of full custom taxonomy for custom post type
- WordPress multisite – is it possible to have different taxonomies for each site?
- How to filter a custom post type by custom taxonomy without 404
- When I choose category from dropdown then everything working fine.But in backend it checked only child not parent [closed]
- How to show list of taxonomy terms associated with specific post?
- Custom Columns for Custom Post Type Manager
- I have custom post type with custom taxonomy. But not found the taxonomy page..
- Group Custom post type in a taxonomy page by its child taxomony
- Get child categories of custom taxonomy category?
- How to Control CSS Class Visiblity From WordPress Admin Panel based on Tax Terms
- Problem retrieving informations and displaying desired structure with custom post type and taxonomy
- Best Way to Query Custom Taxonomies Used on Custom Post Type
- How do I ensure that post_type and Taxonomy use the same slug?
- Archive page of CPT’s custom Taxonomy
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- How to show related posts of category on post within custom posttype
- Not saving custom taxonomy while using ajax
- Dynamic template page calling shared taxonomies CPT or Plugin post type : how to clone taxonomy for plugin + set up dynamic shortcode
- Post Tags not working for Custom Post type
- 404 – Taxonomy Archive Page
- Display Custom Field or Custom Taxonomy in front page /post/product
- Some posts not displaying by taxonomy term
- WP_Query for custom taxonomies showing posts from non-specified terms?
- Custom search for a custom post type in WordPress
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Custom taxonomy with custom post type archive page
- Multiple non-hierarchical custom taxonomies frequently used terms showing up in first selected taxonomy box
- Custom URL for Custom Post Type & Custom Taxonomy Term
- I want to create pagination for my custom post type archive that i am displaying with loop
- Showing taxonomies with terms that are attached to custom post
- Saving Child Terms on front end not setting parent
- Custom taxanomy and custom post type – pagination leads to 404
- Getting all custom post taxonomies and exhibiting only part of them
- Help with Travel Guide Setup
- Custome post type “tags” pick default archive instead of custom post type archive
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Custom post type taxonomy template and URL confusion
- Custom post type AND custom taxonomy are not connected
- How can I add a “fake” parent into the permalink?
- Loop with Custom Post Type and Taxonomies
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- WordPress Custom Post Type and sort by Tags
- Displaying custom post types with taxonomy
- Using one custom taxonomy.php for two custom taxonomies?
- Add taxonomy to custom post type archive
- Missing categories for Custom Taxonomy and Custom Posts
- posting twice from an array?
- Show one of the taxonomies always as default
- Custom taxonomy labels won’t display
- Custom post type with custom taxonomy
- How do i get the taxonomy term name on the CPT archive page?
- From form submission values – dynamically update CPT “has_archive” slug and custom taxonomy “rewrite” slug value
- Calling custom taxonomies
- Sort ACF by custom taxonomy
- Is it possible to use a post name in a custom post slug?