• Resolved vvmdov

    (@vvmdov)


    Here is a brief overview of the situation:

    1. 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’
    2. 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'),
    )
    );
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Tonmoy

    (@azimkhan123)

    Hello @vvmdov ,

    Thank you for the detailed feedback. I will test this issue on our local environment and assign this issue to our development team.

    • This reply was modified 1 year, 2 months ago by Tonmoy.

    Hello @vvmdov ,

    I tried to generate the issue on our local server using the code you provided in the forum. Everything works fine here. If your problem still exists, then follow the steps given below:

    1. Make sure that you have added at least one category to your custom category. image
    2. Make sure that you have added at least one tag to your custom tag. image

    If both steps are completed, then you can find the category and tag when you create or edit Podkast. image

    Also, you can find in our site builder block settings:

    a. The custom post type: Query Builder > Sources. image

    b. The category: Query Builder > Taxonomy. image

    c. And the category value: Query Builder > Taxonomy Value. image

    If you set Sources to Podkast described in point “a”, then you can also find the custom category in the Taxonomy/Category section. image

    Make sure that you use the updated version of PostX.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with Custom Taxonomies in PostX Plugin Block Editor’ is closed to new replies.