eltarny
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Permalinks] Polylang – Share same slug between languagesHi Sami,
yes, everything is up to date.
Regards,
EliasI was wondering the exact same thing. I always use it for easy 1-click backups on my live sites.
Adminer has completely disappeared from the wp plugins and I cannot find any information why.
If anyone knows please inform the rest of us.
Awesome.
It works and it is much cleaner.
Gave you a 5 star as you deserve it.
Thanks again.
Hey Daniel thank you so much for that.
Amazing support for a very well implemented and functional plugin.I had to make some changes to your code because the
pll_the_languages( array( 'raw' => 1 )
works only on the frontend.
Searching the polylang support forum I found the equivalent for the backend which is
$polylang->get_languages_list()
i also put another check in there to any polylang call to check if polylang exists to avoid errors during updates or if polylang is inactive.
The final code now for pum_check_lang is
function pum_check_lang( $settings ) { // Static caching of a reusable value. global $polylang; if (isset($polylang)) { static $lang = null; if ( $lang === null ) { $lang = pll_current_language( 'slug' ); } } // Sanity check to make sure that the 'selected' key is a valid array. if ( ! isset( $settings['selected'] ) || ! is_array( $settings['selected'] ) ) { $settings['selected'] = array(); } // Check each selected language against the foreach ( $settings['selected'] as $check ) { // If the selected language matches return true. if ( $lang == $check ) { return true; } } // If no languages matched, return false. return false; }
and for pum_lang_options is
function pum_lang_options() { // Static caching of a reusable value. static $langs = null; // Prime empty cached value. if ( $langs === null ) { $langs = array(); global $polylang; if (isset($polylang)) { $adminlanguages = $polylang->get_languages_list(); } foreach ( $adminlanguages as $lang ) { $langs[ $lang->name ] = $lang->slug; } } // Return the cached value. return $langs; }
Again, thank you so much!
Sorry for taking so long to answer, and thank you for taking the time to answer me.
Now for your question
yes, the conditions did appear automatically.Polylang’s function of detecting the language is
pll_current_language($value);
where $value can be ‘en’ or ‘el’ in our case
here is the documentation of that function
https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/Where should I put that check and how?
Forum: Plugins
In reply to: [Polylang] Story Theme – Language Switcher always redirects to HomeI replaced a piece of code they gave me in their mega-menu functions. They added a check if(is_admin()). Why that works, beats me really
Forum: Plugins
In reply to: [Polylang] Story Theme – Language Switcher always redirects to HomeJust to close this issue, the Story developers solved it and it will be incorporated in the next update.
Thank you.
Forum: Plugins
In reply to: [Polylang] Language switcher fails with Theme: Story by PexetoJust FYI, the Story guys solved the issue. It will be incorporated in the next update
Forum: Plugins
In reply to: [Polylang] Story Theme – Language Switcher always redirects to HomeThat makes sense, but on the other hand it’s the plugin that is not working and the theme providers clearly state that they do not offer support for plugins.
In any case, I have to thank you for this freely offered and awesome plugin. I am not critical, I am just trying to find a resolution to the matter which in turn is going to make Polylang compatible with another popular theme.
Forum: Plugins
In reply to: [Polylang] Story Theme – Language Switcher always redirects to HomeI have; it doesn’t provide a resolution though, does it?
What are you proposing exactly? To install an older version of polylang?
It is clearly stated here that support is only provided for the latest version.Forum: Plugins
In reply to: [Polylang] Language switcher fails with Theme: Story by PexetoUnfortunately this might not be an option for my case.
This is a very tight budget site…Thank you for taking the time to answer me this
Forum: Plugins
In reply to: [Polylang] Language switcher fails with Theme: Story by PexetoHello, did you resolve this?
I have the exact same problem. I have used polylang successfully with 4 other themes, but suddenly with the theme Story by Pexeto it doesn’t work.Here is a link to the site in questions. It’s just a sample page for now.
https://www.anamalily.comI would greatly appreciate any help on this
If I need to start a different topic, please tell me
Forum: Plugins
In reply to: [Polylang] Change RSS feed titleUpdate:
Success!
All that was needed was to update one post so the Feedburner alias feeds get updated from the normal blog feeds. This works even with the Feedburner plugin activated and On.
Your code did the trick!!!
Thanks so much!
Forum: Plugins
In reply to: [Polylang] Change RSS feed titleWe will try editing the feedburner feeds and creating news posts and we will get back to you.
Thank you very much!!
Forum: Plugins
In reply to: [Polylang] Change RSS feed titleI deactivated the Feedburner plugin.
When I clear all browser cache [so it doesn’t redirect to Feedburner] and go to
https://www.laceandmacarons.com/feed/
or to
https://www.laceandmacarons.com/en/feed/
it works.When I go to
https://feeds.feedburner.com/laceandmacarons/
or
https://feeds.feedburner.com/laceandmacarons/en
then it doesn’t [I still see the dual titles].Perhaps now the feedburner feeds need to be edited from their owner [my client] so they are correct.
Is there any solution to make it work with the feedburner plugin on?