Passer la navigation

[Résolu] filter by url parameter and by shortcode attribute

This support ticket is created Il y a 4 years, 3 months. 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 -

Fuseau horaire du supporter : America/Jamaica (GMT-05:00)

Marqué : 

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Shane Il y a 4 years, 3 months.

Assisté par: Shane.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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