Issue with Custom Taxonomies in PostX Plugin Block Editor
-
Here is a brief overview of the situation:
- I have registered a custom post type named “Podkast” with the following attributes:
- Labels: ‘Podkast’ (name) and ‘Podkastlar’ (singular name)
- Supports: Title, Editor, Thumbnail, Excerpt, Custom Fields
- Rewriting: ‘slug’ set to ‘podkast’
- Menu Icon: ‘dashicons-microphone’
- I have also registered two custom taxonomies:
- ‘podkast_category’ (hierarchical)
- ‘podkast_tag’ (non-hierarchical)
Despite successfully registering these taxonomies, I’m unable to see the taxonomy values within the PostX plugin’s block editor. The taxonomies work correctly in the default WordPress editor, but the issue arises specifically within the PostX block editor.
I have already attempted the following steps to resolve the issue:
- Checked for JavaScript errors in the browser console.
- Ensured that both WordPress and the PostX plugin are up to date.
- Tested with a default WordPress theme to rule out any theme-related conflicts.
However, the problem persists. I believe that there might be a compatibility issue between the custom taxonomies and the PostX plugin’s block editor.
Could you please provide guidance on how to troubleshoot and resolve this issue? Is there a specific setting or configuration within the PostX plugin that I need to adjust to ensure proper display of taxonomy values?
Thank you for your time and assistance. I appreciate your support in helping me resolve this matter.
The code is:
// Add the custom post type registration function to the init hook
add_action('init', 'create_podkast_post_type'); // Register the custom post type
function create_podkast_post_type() {
register_post_type('podkast', array(
'labels' => array(
'name' => ('Podkast'), 'singular_name' => ('Podkastlar'),
),
'public' => true,
'has_archive' => true,
'supports' => array('title', 'editor', 'thumbnail', 'excerpt', 'custom-fields', 'categories', 'tags'),
'rewrite' => array('slug' => 'podkast'),
'menu_icon' => 'dashicons-microphone', // Change to the appropriate dashicon
'taxonomies' => array('podkast_category', 'podkast_tag'), // Add this line to associate taxonomies
));
} // Register the custom taxonomy for categories
add_action('init', 'create_podkast_taxonomy');
function create_podkast_taxonomy() {
register_taxonomy(
'podkast_category', // Change this to your desired taxonomy name
'podkast', // Change this to your custom post type name
array(
'hierarchical' => true,
'label' => __('Podkast Kateqoriyalari'),
'rewrite' => array('slug' => 'podkast-kateqoriya'),
)
);
} // Register the custom taxonomy for tags
add_action('init', 'create_podkast_tags_taxonomy');
function create_podkast_tags_taxonomy() {
register_taxonomy(
'podkast_tag', // Change this to your desired taxonomy name for tags
'podkast', // Change this to your custom post type name
array(
'hierarchical' => false,
'label' => __('Podkast Etiketl?ri'),
'rewrite' => array('slug' => 'podkast-etiket'),
)
);
} - I have registered a custom post type named “Podkast” with the following attributes:
- The topic ‘Issue with Custom Taxonomies in PostX Plugin Block Editor’ is closed to new replies.