simpleswebs
Forum Replies Created
-
Forum: Plugins
In reply to: [MultilingualPress] Remove hreflang tag from the pageHi @wido,
Ok, I’ll open a new issue related with the redirection.
Btw, the Redirect is active.
Thanks,
David.Forum: Plugins
In reply to: [MultilingualPress] Remove hreflang tag from the pageHi @wido , @rachitarora.
I tried all the filters you propose (‘multilingualpress.render_hreflang’ & ‘multilingualpress.hreflang_type’) but doesn’t work.
Anyway the redirection is not working for my site.
I have the same problem that @pawlmichael has here: https://ww.wp.xz.cn/support/topic/redirection-not-working-26/
I have changed the priorities in the Language Manager but the redirection is not working.I’d read all the posts concerning this issue but I haven’t found none with a solution.
Which could be the cause of the issue?
Please, let me know if you could help me.
Many thanks,
David.Forum: Plugins
In reply to: [MultilingualPress] Change hreflang from en-US to enHi Emili (aka @dinamiko),
Thanks for your great contribution.
A note for the previous piece of code: it would finish with “10, 2” instead of “2, 10” (where $priority is 10, $accepted_args is 2):
add_filter('mlp_hreflang_html', function ($html, $lang) { if ($lang === 'en-US') { $html = str_replace('hreflang="en-US"', 'hreflang="en"', $html); } return $html; }, 10, 2);Salutacions 😉
David.- This reply was modified 7 years, 8 months ago by simpleswebs.
- This reply was modified 7 years, 8 months ago by simpleswebs.