Skip to content

rules seem to blanket apply only + 4 ACF operators missing #126

Description

@senlin

Description

I have a custom post type team and a custom post type testimonial. The testimonial post type has ACF (Pro) fields associated, one a Post Object "therapist". Most testimonials have a therapist associated, some don't.

I have a testimonial block that has a background color, and which is added to the single team member template. My testimonial block outputs the testimonials associated with the current therapist.

Trying to use Block Visibility to hide the block using the associated Testimonial parameters: nothing works. Either the blocks shows for all, or it is hidden for all.

I even tried using the the metadata directly associated with the single team member (position), selecting "value is equal to" "therapists", but again it becomes a blanket rule: either showing for all or showing for none. When showing for all I mean that the block is empty, but the background shows.

Furthermore the documentation shows 10 rules, however I can only see 6.

Step-by-step reproduction instructions

  1. open single template where testimonial block has already been added to
  2. select outside container
  3. add block visibility rules for ACF (seems to be missing 4 operators)
  • a. tried "position", which is ACF field directly associated. with current single team member. Picked Value is equal to and wrote therapists (which is a valid value).
  • b. tried "therapist", which is ACF field associated with the testimonials belonging to this therapist. Hoped for Value is less than, but since not available I picked Has no value
  1. save template and check frontend

Expected behaviour

  • 3a. I expected to see the block on the single profile of therapists and to not see the block (background) on the single profile of people that do not have the position therapists
  • 3b. I expected the block to be hidden on single team members that do not have testimonials associated with them
  • I expect to see 10 operators as per the documentation

Actual behaviour

  • 3a. the block always shows, also on the single profile of people that do not have the position therapists
  • 3b. the block always shows, also on the single profile of people that do not have testimonials associated with them
  • there are only 6 operators, contrary to what the documentation states.

Screenshots

screenshot 1
screenshot 2

System information

  • Block Visibility version: 3.7.1
  • Block Visibility Pro version: Not installed
  • WordPress version: 6.7.2
  • Gutenberg version: Not installed
  • ACF Pro: 6.4.0.1
  • Are all plugins except Block Visibility, Block Visibility Pro (if installed), and Gutenberg (if installed) deactivated? No, other plugins installed and active are WP Importer, Create Block Theme, Disable Comments, The Icon Block and Ollie Pro
  • Are you using a default theme (e.g. Twenty Twenty-One)? No, using OllieWP theme

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions