Hiding Sections Based on Selected Taxonomy
-
Hello,
I’m currently using Custom Post Type UI along with ACF. I’ve created Custom Post Type for Books. I created a Taxonomy for Book Formats: eBook, paperback, hardback, audiobook. I also have sections with information about each format. To create this, I made a section in Elementor, and added it to an Accordion loop. On the Single Post page, I added in the Loop for each book format, and set the query to the book format it corresponds to. For example, the Accordion for the eBook is set to book formats: eBook. This accordion should only display if the eBook is checked off in the Book Format Taxonomy for each specific book. I’ve played around with various Display Conditions, but it either hides the section for all books, or shows the section for all books. Also, when I select Dynamic Tag, I select Post Terms, and it only allows me to select Book Format. I can’t select eBook from here. I’ve tried adding the token, and that doesn’t seem to do the trick. Am I missing something? What is the best way to accomplish this?
The topic ‘Hiding Sections Based on Selected Taxonomy’ is closed to new replies.