Conditional logic for Custom Fields based on Taxonomy selection

  • Solved
  • Posted 1 month ago

Hi, I’m looking for a way to implement conditional logic for a Custom Post Type (CPT). I am not looking for a solution for an Elementor Template or the frontend. I need this to work inside the backend while the user or myself are creating or editing the post.

Setup:
CPT: e.g. places
Taxonomy: e.g., category (with terms A,B,C,D,)

Requirement: I want to show specific custom fields or taxonomy (lets call it price) in the editor only if a specific taxonomy term (e.g., “B”) is selected. I tried it with visibility rules but it didnt work.

  • Images