Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: polylang support #118

Open
jackblackCH opened this issue Aug 24, 2015 · 14 comments
Open

feature request: polylang support #118

jackblackCH opened this issue Aug 24, 2015 · 14 comments

Comments

@jackblackCH
Copy link

it would be also nice to support the other popular multilanguage plugin: polylang:
https://wordpress.org/plugins/polylang/

I think, even more, in a multilanguage environment, wp-nested-pages is a must-have but currently not supporting polylang.

@mrkbr
Copy link

mrkbr commented Jan 4, 2016

+1
Is there any multilanguage plugin that works already?

@j-falk
Copy link

j-falk commented Aug 15, 2016

I initially thought it would not work with Polylang at all but seems to play decent when we test them together. Menu sync won't work and connected to this is the add link functionality which also won't work, so we now have menu sync completely turned of. I am not really sure how Nested Pages could address this issue, maybe sync one menu per language that you have setup in Polylang?

Anything else which don't work that you know of?

@mrkbr
Copy link

mrkbr commented Aug 15, 2016

Hi,

we use a multisite system with wpml now - everything works for us - but we don´t use the automatic menu creation feature.

Best,
Mario

Am 15.08.2016 um 09:25 schrieb j-falk notifications@github.com:

I initially thought it would not work with Polylang but seems to play well when we test them together. Anything specific which don't work that you know of?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub #118 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AGw2EXosYa9lOrdC-JtbTANp6HC6qWwGks5qgBSHgaJpZM4FxE4I.

@bfiessinger
Copy link

+1
any updates on this? Would be great if I could use the default polylang language buttons or even better if the plugin would generate a tree for every language.

@black-eye
Copy link

+1

@black-eye
Copy link

Hi, any news on this?
Thanks

@acki
Copy link

acki commented Mar 5, 2020

+1
Please do something @kylephillips

@jerepaajanen
Copy link

+1 This would be nice!

@tsipilai
Copy link

+1 do it

@karkkaz
Copy link

karkkaz commented Oct 19, 2021

+1 This would be very nice feature!
Any news on this?

@Kadigan
Copy link

Kadigan commented Jan 13, 2022

+1 It would be useful to at least see which pages are for which language...

@teppokoivula
Copy link

+1, would be a superb addition :)

@jbjanot
Copy link

jbjanot commented May 9, 2022

+1 as well, would love it!

@timothyoesch
Copy link

timothyoesch commented Apr 21, 2023

Hey y'all

I just circumnavigated this issue by instead of having multiple menus for the different languages that have to be synced, I just filter the menu at rendering.

Here's the gist to the new function

I'd recommend including that in your theme functions file (or wherever you need it) and just call that function instead.

Here's two things: Firstly, I obviously know that it won't work for people who can't access their source code. Sorry bout that.
Secondly: I am not sure about performance, especially with large menus (I read of people who have like thousands of pages to filter. That's insane). Can anyone judge that?

Happy to hear from y'all!

EDIT: I just realized that the filter should probably not apply to all menus all the time. I therefore had to refactor the callback into a named function, add it before running the wp_nav_menu command, removing it again and then returning the output. Not very elegant... But it works 🥴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests