Skip Navigation

[Resolved] filter by url parameter and by shortcode attribute

This support ticket is created 3 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

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

This topic contains 1 reply, has 2 voices.

Last updated by Shane 3 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#2061913

Hello how are you?

I would like to know if there is a way in the same view, I filter by url parameter and by shortcode attribute.

For example: if the url attribute is empty, use the shortcode attribute.

this is useful for reusing views.

will be able to do that?

I'm waiting

thanks

#2061963

Shane
Supporter

Languages: English (English )

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

Hi Henrique,

Thank you for getting in touch.

There is actually a way to do this, with the hook below.
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_custom_field_filter_original_value

This hook allows you to be able to switch between URL parameter or Shortcode filtering for the view.

Please let me know if this helps.
Thanks,
Shane