Skip Navigation

[Resolved] "If empty" does not work

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Bochnacki 7 years, 7 months ago.

Assisted by: Nigel.

Author
Posts
#507587

For "Toolset Professional Support" I can not get it because I'm logged out, so I'm writing here.

[wpv-conditional if="( NOT(empty($(wpv-pager-total-pages))) )"]
Number of pages: <span>[wpv-pager-total-pages]</span>[/wpv-conditional]

It seems to me that I wrote it well, but it does not work.
I want to "Number of pages: <span> [wpv-pager-total-pages] </ span>" was not shown when there is only one result page.

#507742

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I used the conditional output button to insert the shortcode to test the wpv-pager-total-pages shortcode output and it generated the conditional shortcode like so:

[wpv-conditional if="( '[wpv-pager-total-pages]' ne '' )"]
<p>Total pages: [wpv-pager-total-pages]</p>
[/wpv-conditional]

That worked as expected for me, if you could try it like that.

#507748

Thank you for your help 🙂

The forum ‘Types Community Support’ is closed to new topics and replies.