Skip Navigation

[Resolved] Map not working after filters are selected

This support ticket is created 4 years, 1 month 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 6 replies, has 2 voices.

Last updated by azzurraM 4 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2108351

I am trying to:
Get markers to be shown on a map also after filters are selected
Link to a page where the issue can be seen:
hidden link
I expected to see:
I selected the option "AJAX refresh when changing any filter" so I expect to see the results change after applying the filters
Instead, I got:
After a filter is selected, you need to refresh the page to see the markers

#2108971

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Thank you for the details but as of now map reload with ajax refresh is not supported.

I'd recommend to make the archive without Blocks or to use page reload instead of ajax filter.

You are also welcome to file a feature request using the following form:
=> https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

#2109035

Hi Minesh,
thank you, I saw this feature applied in one of your videos and I thought it was supported. I changed that to Page reload and added a submit button, it's now working properly.
There is something else with this page/CPT:
1)My final goal is to get this type of URL: /distributori/region/province/post-name
Province is a child to region and each region has many different provinces. I don't understand how to get this.
Also, I need to have these as search fields on the archive page, but when I select the Region in the search field I’d like the Province search field to only show the provinces in that particular region (please see this for reference: hidden link).
How can I achieve that?
2) Why aren’t I getting any taxonomy term archive pages? The rewrite option is selected but if you go to /distributori/region-name you get a 404. If I add a custom slug %region%, I can see the archive but the CPT gives a 404..

Thank you very much for your precious help!

#2109113

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

As per our support policy, we entertain only one question per ticket. This helps other users searching on the forum as well as help us to write correct problem resolution summery for the original issue reported with the ticket. I request you to kindly open a new ticket with every question you may have in the future.

Since 'Types' provides a limited solution to rewrite the base for your CPT. We offer URL rewriting option with CPT and you may try to play with that. you can find that at:
=> Toolset => Post Types => Edit post type => Under section "Options" you will find option rewrite

See this screenshot:
hidden link

Toolset do not offer any URL rewrite options, you will have to use third party plugin that offers URL rewrite feature or write URL rewrite rules on your own.

Fllowing are a few links, which may help you achieving this, please have a look:
- Plugin: https://wordpress.org/plugins/rewrite/
- WP Plugins Repository Search: https://wordpress.org/plugins/search.php?q=url+rewrite

Few Articles that may help you:
1. hidden link
2. http://code.tutsplus.com/articles/using-wordpress-for-web-application-development-available-features-part-6-url-rewriting-or-routes--wp-34326
3. hidden link

For your custom URL rewrite requirement, I would suggest contacting our certified partners.
=> https://toolset.com/consultant/

#2109143

Ok Minesh, I'll open a new one next time, thank you.
So, I understand I need to find an alternative solution for the URL. What about the taxonomy term archive pages? (my second question). How can I get an archive page and still see my CTP instead of getting 404s?

thanks a lot

#2109155

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You can create taxonomy archive same as a post type archive and list the posts. Please open a new ticket if you do not find it working as expected.

#2110099

My issue is resolved now. Thank you!