[-if] … [/-if] inside [if]..[/if] doesn't display fields correctly
-
This is my code that I write in single-mytaxonomy.php file.
<?php start_short(); ?> [if term="berner"] [if field="berner-5"]<p><b>Date: </b>[field berner-5]</p>[/if] [if field="berner-6"]<p><b>Price: </b>[field berner-6]</p>[/if] [/if] <?php end_short(); ?>
It display somethink like this (view screenshoot)
https://prntscr.com/7ykaj6I tried this code too, It’s show nothing.
<?php start_short(); ?> [if term="berner"] [-if field="berner-5"]<p><b>Date: </b>[field berner-5]</p>[/-if] [-if field="berner-6"]<p><b>Price: </b>[field berner-6]</p>[/-if] [/if] <?php end_short(); ?>
https://www.ads-software.com/plugins/custom-content-shortcode/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[-if] … [/-if] inside [if]..[/if] doesn't display fields correctly’ is closed to new replies.