Hi.
I'm calling a few Views, like this:
[wpv-conditional if="( '[wpv-found-count]' ne '0' )"]
[wpv-view name="show-thetown" city="1"]
[/wpv-conditional]
[wpv-conditional if="( '[wpv-found-count]' ne '0' )"]
[wpv-view name="show-thetown" city="2"]
[/wpv-conditional]
[wpv-conditional if="( '[wpv-found-count]' ne '0' )"]
[wpv-view name="show-thetown" city="3"][/wpv-conditional]
And i want the result to be displayed, like:
Town 1 information...
Town 2 information...
Town 3 information...
But not if the Views result is empty.
Everything works, except even though it is empty is inserts a newline. I have about 20 Views i'm calling. So there are lots of newlines.
I'm using Visual Composer in the template, is that the problem? I have no br tags in my Views template, but when i inspect in the browser, there is a br tag in every one, including the empty ones.
Or are there a better way to call the same View multiple times but with different shortcode parameters?
In some kind of loop?
Hi.
Solved it by surrounding the text with wpv-autop.