Skip Navigation

[Resolved] FIlter using post reference field

This support ticket is created 5 years, 9 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.

Our next available supporter will start replying to tickets in about 0.59 hours from now. Thank you for your understanding.

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)

This topic contains 5 replies, has 2 voices.

Last updated by vimalS 5 years, 9 months ago.

Assisted by: Waqar.

Author
Posts
#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? hidden link

#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: hidden link ) 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: hidden link )

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: hidden link )

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: hidden link )

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: hidden link )

regards,
Waqar

#1203812

My issue is resolved now. Thank you!