silb0r
Forum Replies Created
-
Hi Mikko,
thx for your reply.
As soon as I turn off the “Use search for admin: If checked, Relevanssi will be used for searches in the admin interface” option, the system is able to find some entries. Otherwise I always get “No results found”.
Is it possible that I maybe setup the wrong settings for that?
Hi George,
thank you so much!!
That explained a lot and helped me with the solution.
Damn that was a pain 😉
If anyone is interested in my solution Multisite Language Switcher.
Again TY!! 🙂
Forum: Plugins
In reply to: [Multisite Language Switcher] Language Switcher directs to the wrong URLHi Dennis,
I’ve found a workaround for this problem.
As you suggested, I wrote in the support forum of the other plugin: The Events Calendar
After that I tried to figure out the best way to implement the solution.
This is what I came up with:includes/MslsOptions.php
/** * Get permalink * @param string $language * @return string */ public function get_permalink( $language ) { /** * Filters the url by language * @since 0.9.8 * @param string $postlink * @param string $language */ if ( function_exists( 'tribe_is_event_query' ) && tribe_is_event_query() ) { $language = explode("_", $language); $postlink = "/$language[0]/events/"; } else { $postlink = (string) apply_filters( 'msls_options_get_permalink', $this->get_postlink( $language ), $language ); } return( '' != $postlink ? $postlink : home_url() ); }But I guess as soon as you will update the plugin this code will be gone, so do you think it is possible to maybe include something for this issue in your future updates ? Or don’t you have the time and I better should save the code?
Kind Regards,
Martin
Hi George,
thank you for your help 🙂
The individual events aren’t part of the issue, they work totally perfect.
Can you clarify your precise issue here a bit? Is it just that when you’re on canto.com/events, and you click “Language > Deutsch”, you’d like it to redirect to to canto.com/de/events instead of just canto.com/de/ (which is where it redirects to at present)?
That’s the exact problem. It redirects to the wrong page.
For example if you’re on canto.com/de/events and try to choose Language -> English you’ll get to canto.com, but it should be canto.com/events.Shall I still provide a screenshot?
Thank you again!!
Hopefully we can find a way to fix this 😉
Kind regards,
MartinForum: Plugins
In reply to: [Multisite Language Switcher] Language Switcher directs to the wrong URLHi Dennis,
edit.php?post_type=tribe_events
I think that these are post_types. Does this help you?
Forum: Plugins
In reply to: [Multisite Language Switcher] Language Switcher directs to the wrong URLHi Dennis,
here is the problem in action:
http://www.canto.com/events/
or
http://www.canto.com/de/events/There is indeed an area, where you can edit the slug (see following picture).
http://i.imgur.com/RjfWhfM.pngThank you for helping!