Site logo

[Support request] Issue with with Element Display Rules

Home Forums Support [Support request] Issue with with Element Display Rules

Home Forums Support Issue with with Element Display Rules

Viewing 14 posts - 16 through 29 (of 29 total)
  • Author
    Posts
  • #2221653
    Fabien

    Then it makes it impossible to select in Display Rules. I believe this should be fixed 😉

    #2221871
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Just to confirm:

    1. The post type does not have archives you can view on the frontend
    2. The taxonomy (attached to that post type) does have archives you can view on the frontend
    3. The post type does not show in Display Rules
    4. The taxonomy does not show in Display Rules

    Is that correct?

    Thanks!

    #2287210
    Fabien

    Hi @Tom,

    Sorry just saw your reply now.

    Find my answers below :

    1. The post type does not have archives you can view on the frontend

    True

    2. The taxonomy (attached to that post type) does have archives you can view on the frontend

    True, terms archives

    3. The post type does not show in Display Rules

    The post type (single view) shows in Display Rules. Which is a “normal” behaviour, then you can target the single template, but not the archive template (again, all normal here).

    4. The taxonomy does not show in Display Rules

    Here comes the issue. When the CPT archive is set to false, in display rules, you only have the option to select taxonomy terms 1 by 1. Example 1 in private information.

    In order to target all terms, you need to have the CPT archive set to true. Example 2 in private info

    To summarize: CPT archive (true or false) shouldn’t impact taxonomy archive. But it does.

    Hope it’s clear.

    #2289464
    Fabien

    Hi @Tom,

    Any news on this ?

    Thanks

    #2289469
    David
    Staff
    Customer Support

    Hi there,

    Tom is out the office today and tomorrow. I can see its on his issues list, so he we will able to review early next week.
    Sorry for the delay

    #2289472
    Fabien

    No worries. Thanks @David !

    #2289487
    David
    Staff
    Customer Support

    Thanks for your patience and understanding 🙂

    #2295904
    Fabien

    Hi @David / @Tom,

    Following up on this, any news ?

    #2296617
    Tom
    Lead Developer
    Lead Developer

    Sorry for the delay here – had a couple weeks of vacation.

    We’re about to start reviewing the last needed tweaks/fixes for GPP 2.2.0, and I’ll make sure this issue is reviewed and fixed if possible. Certainly seems like a bug, but I’ll need to dig in a bit to confirm.

    Will update this thread once I have more information.

    Thanks!

    #2324113
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Been playing with this trying to find a solution for 2.2.0.

    The current functionality is intended – it works this way with all other post types as well.

    In order to display an Element within an archive (showing all posts with a specific taxonomy term), the post type needs an archive. This is just the way the Display Rules feature has its logic, unfortunately. We could remove that check, but it will introduce a whole new set of bugs/inconsistencies.

    One alternative is to set has_archive to true and just 301 redirect the actual archive pages.

    I’m going to leave this open in our private GitHub in case we can figure out some sort of solution. Perhaps a way to filter in post type names to allow even if they don’t have an archive. Something like this:

    add_filter( 'generate_elements_allowed_archives', function( $archives ) {
        $archives[] = 'your-post-type';
    
        return $archives;
    } );
    #2568755
    Fabien

    Hi @Tom,

    Any news on this ?

    Again what I am trying to target is a taxonomy archive page where the post type attached to this taxonomy has_archive is false.

    It is defintaly feasible (without custom code) with Beaver Builder / Themer for example. I don’t see why it wouldn’t be possible with GP/GB. Having a custom tax attached to a CPT without archive is not a “specific” case.

    Happy to discuss live / show you the example with BB.

    Thanks,

    Fabien

    #2570097
    Fabien

    Any news ?

    #2571759
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    No update on this, unfortunately. I’d like to fix it without any code, but we’re unable to do that without possible breakages, which is why we’ve stalled on a solution.

    I’ve milestoned this for 2.4.0 (as we’re able to release 2.3.0 on Tuesday).

    We’ll release a (hopefully no-code-needed) solution in that version.

    Thanks for your patience!

    #2573728
    Fabien

    Ok, great. Thanks @Tom, looking forward to the release.

    Fabien

Viewing 14 posts - 16 through 29 (of 29 total)
  • You must be logged in to reply to this topic.