Forums › Forums › Search & Filter Pro › Split: Split: Taxonomy Filters disappear on AJAX submit
- This topic has 9 replies, 2 voices, and was last updated 10 years ago by
Anonymous.
-
Anonymous(Private) October 8, 2015 at 4:24 pm #26875
Thanks for sending me the update.
I deactivated the plugin, uploaded the new version, activated the plugin and set the search results to displayed via ajax, but still no results returning and the filter not showing.
Maybe it’s an issue with Polylang?
You should still have the login, if you want to debug yourself.Ross Moderator(Private) October 15, 2015 at 12:35 pm #27402Hey Dirk I had a look, I think its because you are not setting up the translated forms properly.
Something I noticed unusual with poly lang (or polylang with your setup) is when you are editing a Search form, and you select the
+button to create a translation, it creates a completely separate version of the Search Form in the other language.What it needs to do is be “linked” to the original version, so go to the S&F overview screen, and hit the little pencil icon, to create your translated search form (much like the screenshots with the flags – http://www.designsandcode.com/documentation/search-filter-pro/3rd-party/wpml/)
I created a test search form with the correct linking – you should be able to see the ones named “multilang” and a page created for this for testing.
Thanks
Anonymous(Private) October 15, 2015 at 1:19 pm #27405Hi Ross,
thanks for your answer and time.
I changed the post type in both search forms you setup to “Lodges” only and added a taxonomy field (Standorte = Locations) and now no search results are showing up.
With your setup, the search was working, now with the custom post type, it’s not.Could you have a look at it please?
Ross Moderator(Private) October 15, 2015 at 1:25 pm #27407Hi Dirk
Ok I think I know whats going wrong, and its essentially a similar problem to what we had before that I supplied a fix for, but in your case it doesn’t seem to be working.
How are you declaring your custom taxonomies?
It seems like the S&F ajax request is being processed before you custom taxonomy is declared in the code.
The correct place to declare WP taxonomies is via the
inithook – as per the codex.S&F begins to handle the ajax request on the
inithook, but with a really high priority (200) so it gets fired last, and should be fired after all taxonomies are created.Thansk
Ross Moderator(Private) October 15, 2015 at 1:28 pm #27409Hey Dirk
I had a look at the README in the S&F folder and it doesn’t look like you are using the latest version I sent, or perhaps I sent you the wrong version.
I’ve just emailed you again – can you try the new zip?
Thanks
-
AuthorPosts