Skip Navigation

[Resolved] Dynamic url by filter

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to change a custom search View so that it uses URL directories instead of URL parameters.

Solution: View filters are not designed to respond to URL directory structures, so this would require custom code.

This support ticket is created 6 years, 8 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by marius-ciprianZ 6 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#902025

Tell us what you are trying to do?
I want to create a dynamic URL after filtering a product.

Is there any documentation that you are following?

Is there a similar example that we can see?
The similar product its like: category-name/result/category-name/result (ex: hidden link)

What is the link to your site?
hidden link (user: magic, pass: preview)

#902151

Hi, it sounds like you want to use a View's filters or a WordPress Archive's filters to navigate to a specific URL. Is that correct? If so, Views filters aren't designed to be used for navigation. They are designed to be used to filter the results shown in the Loop Output, and they are designed to integrate with URL parameters instead of directory structures. I think you could design something like this with custom code. Another ticket here in the forum discusses a similar navigation system that uses a View to build a custom "select" field menu system:
https://toolset.com/forums/topic/create-a-dropdown-box-with-location-names-to-select-a-location-then-display-it/

#902301

Hi and thank you for reply!

Your answer its ok but i want to change this url ..../?wpv-colectia=casapark&wpv_aux_current_post_id=5494&wpv_view_count=6082-TCPID5494&wpv-culoare=steamed generated by toolset filter with url like this: ..../colectia/casapark/culoare/steamed

Is that possible?

#902438

Unfortunately Views filters are designed to work with URL parameters, not URL directories. So you may be able to write some custom code that helps show the correct filtered View contents at this URL, but Views front-end filters will not respond to URL directory structures like this without some significant custom code. That falls outside the scope of support we provide here in the forums. We do have a contractor portal where you can connect with developers who may be able to offer professional assistance: https://toolset.com/contractors

#902444

Thank you for solution!