Skip Navigation

[Résolu] FIlter using post reference field

This support ticket is created Il y a 5 années et 9 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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

Supporter timezone: Asia/Karachi (GMT+05:00)

Marqué : ,

Ce sujet contient 5 réponses, a 2 voix.

Dernière mise à jour par vimalS Il y a 5 années et 9 mois.

Assisté par: Waqar.

Auteur
Publications
#1203585

Tell us what you are trying to do? FIlter using post reference field

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site? lien caché

#1203597
Screenshot_3.png

When I select value from dropdown page is not getting refreshed

#1203656

Hi Vimal,

Your screenshot shows that "Full page refresh when visitors click on the search button" option is selected, but this means that you'll also need a search or submit button.

Please include one ( screenshot: lien caché ) and then check the search form again.

regards,
Waqar

#1203692

Hi Waqar,

I do not want search button, I need to filter it when I select any option from dropdown.

Thanks

#1203794

Hi Vimal,

If you'd like to update the results, without clicking the search or submit button, you'll need to switch back to the option:
"AJAX results update when visitors change any filter values"
( screenshot: lien caché )

Important notes:

1. The new shortcode "[get_prf_filter]" needs to be placed inside the "Search and Pagination", just like the regular "[wpv-control-postmeta]" shortcode.
( screenshot: lien caché )

2. You can wrap the default "[wpv-control-postmeta]" shortcode inside a "<div style="display:none;"> ... </div>", so that the select filter field with the numeric IDs is not visible and only the new one with the title is shown.
( screenshot: lien caché )

3. Also, make sure that the "Query Filter" still includes the filter for the post reference field. This gets added automatically when we insert a new filter in the "Search and Pagination" section.
( screenshot: lien caché )

regards,
Waqar

#1203812

My issue is resolved now. Thank you!