[Resolved] When URL parameter is blank or missing, Views returns all possible results

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices, and was last updated by  Shane 5 months, 2 weeks ago. The support staff assigned to this topic is Shane.

Viewing 2 posts - 1 through 2 (of 2 total)

This page includes multiple views that are only supposed to return when their State custom field matches the URL parameter state= -- but when I just load the page as is, it returns every possible content item. What I want is for it to return nothing when there's no URL parameter -- how can I do this?

hidden link


hidden link


Forum moderator

Supporter languages: English (English )

Supporter Timezone: America/Jamaica (GMT-05:00)

Hi Jesse,

Thank you for contacting our support forum.

There is only one way I can think of resolving this is to use our [wpv-conditional] shortcode to evaluate the url parameter to check if its empty.

We will need to use a combination of our shortcodes to achieve this.



So how we will do it is like this.

[wpv-conditional if="( '[wpv-search-term param="state"]' ne ' ' )"]

view contents here.

This will allow you to not display anything if there wasn't a state specified.

Please let me know if this helps.

Viewing 2 posts - 1 through 2 (of 2 total)