• And

    (@nemoya)


    Hello Blocksy team! I’ve run into an issue regarding post card meta data and custom non-hierarchical taxonomies.

    My Setup: Using the Advanced Custom Fields (ACF) plugin, I created a Custom Post Type (Portfolio) and a Custom Taxonomy attached to it. The taxonomy is set as tags (non-hierarchical, hierarchical => false). I am using the default Blocksy archive template for this CPT (no custom PHP templates).

    The Problem: In the Customizer (Post Types -> Archive -> Card -> Post Meta), I add the “Taxonomy” element. Blocksy successfully detects my custom taxonomy in the “Taxonomy Source” dropdown, and I select it. However, the tags do not display on the frontend in the post cards. (The posts are published, the tags are definitely assigned to them, and “Show in REST API” is enabled for both CPT and Taxonomy in ACF).

    The Clue (My troubleshooting): If I go to ACF settings and toggle this taxonomy to be Hierarchical (hierarchical => true) and flush permalinks, Blocksy immediately starts displaying the terms in the post cards! If I switch it back to non-hierarchical (tags), they disappear again.

    My Questions:

    1. Is this a known limitation/bug in Blocksy’s meta module (not supporting custom non-hierarchical taxonomies in the Customizer)?
    2. Is there a filter or a proper way to force the standard Blocksy meta element to output these flat tags without having to switch them to a hierarchical structure?

    Thanks in advance for your help! Your theme is amazing!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Eduard

    (@cteduard)

    Hello @nemoya,

    That’s correct. There is a known limitation with non-hierarchical custom taxonomies, which stems from a core WordPress limitation rather than anything specific to our software.

    The recommended approach would be to set these custom taxonomies as hierarchical, as using them as non-hierarchical isn’t currently possible. Sorry for any inconvenience this may cause.

    Thanks,
    Eduard

    Thread Starter And

    (@nemoya)

    Thank you for your reply, I will do as you suggested.

    I also have another question. Regardless of whether I create the taxonomy as hierarchical or not, posts are not displayed on the taxonomy archive page. At the same time, the posts do exist and the required taxonomy is assigned to them.

    They only start showing up after I add the following code:

    add_action('pre_get_posts', 'fix_portfolio_tags_archive_query');
    function fix_portfolio_tags_archive_query($query) {

    if (!is_admin() && $query->is_main_query() && is_tax('portfolio_tags')) {
    $query->set('post_type', 'portfolio');
    }
    }

    Could you please explain what might be causing this issue? Why are the posts not displayed without this code?

    Also, as a note, I am using the default taxonomy template provided by your theme.

    Eduard

    (@cteduard)

    Hello @nemoya,

    Unfortunately, I’m not able to comment on custom code implementations or matters handled by third-party plugins.

    There’s a straightforward way to identify the culprit: temporarily switch to one of the default 202x themes and see if the issue persists. If it does, that confirms it’s most likely a plugin or configuration issue.

    Could you give that a try and report back?

    Thanks,
    Eduard

    Thread Starter And

    (@nemoya)

    I disabled all plugins except Advanced Custom Fields, resaved the permalinks, and switched to your parent theme. The posts still do not appear on the taxonomy archive page.

    I also installed another theme, specifically YITH Wonder, and the posts still do not show up on the taxonomy page there as well.

    Could you please advise how to find the root cause of this issue? Or is this expected behavior, where posts are only displayed after adding the fix code I mentioned above?

    Eduard

    (@cteduard)

    Hello @nemoya,

    As this has been confirmed to be a non-theme issue, it falls outside the scope of our support. For matters like this, a knowledgeable developer would be your best bet.

    Thanks,
    Eduard

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.