Please note that I AM NOT USING ToolSet BLOCKS ....
I repeat .. I AM NOT USING ToolSet BLOCKS.
I am using Views in LEGACY MODE in conjunction with Beaver Builder Themer templates.
My question:
I know that it is possible to use conditional statements to check for output from a TYPES custom field.
e.g.
[wpv-conditional if="( $(wpcf-message-to-students) ne '' )"]
<h3>⬛ Message to Students</h3>
<p>[types field='message-to-students'][/types]</p>
[/wpv-conditional]
BUT... what if I want to test whether the output from a View is empty, specifically the output from a View which produces the content of a repeatable field.
e.g.
<h3>⬛ Education</h3>
<p>[wpv-view name="faculty-education-repeating-field"]</p>
In our template, the above code will output the something like the following if repeatable field entries exist.
Education
2020 PhD Harvard
2016 MA Oxford
2012 BA Stanford
BUT ... if there is nothing in those repeatable fields, it will output like this:
Education
No items found
So this is undesirable.
HOW CAN I TEST WHETHER THE VIEW CONTAINS CONTENT VIA A CONDITIONAL STATEMENT OR SOME OTHER TECHNIQUE?
2. Next, in place of the 'no items found' message (i.e. inside the [wpv-no-items-found]... [/wpv-no-items-found] tags), you can include the following CSS code, that hides this view's div container, whenever no results are returned: