Dynamically display if there is content in the posts
-
Hi there,
What I’d like to do is make it so that my accordions only display if there is content inside them, I can’t seem to figure out how to do it. At the moment, my accordions are displaying regardless, and that means that the user wastes time clicking through empty accordions, looking for content (not very user friendly).
I’m using the accordions built into the Woo framework.
Here is the code I’m using:
</p> <p>[toggle title_open="Images" title_closed="Images" hide="yes" border="yes" style="default" excerpt_length="0" read_more_text="Read More" read_less_text="Read Less" include_excerpt_html="no"] [raw]< [block class="table-of-interactions"] [loop type="interaction" taxonomy="chapter" term="1" taxonomy_2="interaction-media-types" term_2="images" compare="and"] [fourcol_three] <h4 style="margin-bottom: 10px;">[field title]</h4> <p style="margin-bottom: 10px;">[field short_description format="true" length="365"]</p> <a href="[field url]">view</a> [/fourcol_three][fourcol_one_last] [field image="thumbnail" size="thumbnail"]</p> <p>[/fourcol_one_last]</p> <p><hr /></p> <p>[/loop] [/block] [/raw] [/toggle]
Many thanks for any help
https://www.ads-software.com/plugins/custom-content-shortcode/
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Dynamically display if there is content in the posts’ is closed to new replies.