If post have custom taxonomy term, make it visible – Dynamic.ooo

If post have custom taxonomy term, make it visible – Dynamic.ooo

Specific case, when you need to hide/show Elementor widget, through Dynamic Visibility (Dynamic.ooo), in case post have checked any term from custom taxonomy.

Steps:

  • activate Dynamic Visability
  • choose triggers “Dynamic Tags”
  • choose Dynamic Tag – PHP
  • enable “Return as Data”
  • change custom_taxonomy with your taxonomy name and copy this codeĀ  – $terms = get_the_terms( $post->ID, ‘custom_taxonomy ); if ($terms) { return true; }
Twitter
Facebook
LinkedIn
Telegram
WhatsApp
Email