PolyLang and get_posts()
-
Hello,
New to the plugin, I haven’t found a solution to this in the documentation so far but appologies if it’s something obvious that I’m missing.
I have a lot of instances of generating content via get_posts() for custom post types, then looping through to generate content on page templates etc. It looks like PolyLang only retrieves posts that have been translated already within the current language. I’m wondering if there is any way to retrieve all posts in the default language instead, unless there is a translation? It would be nice to not leave holes in the content while a client finishes translating, or if they only intend to translate some pieces.
Or as an alternative, has anyone come up with a “copy all” kind of add-on for PolyLang, basically to click a button in the admin and loop through ALL pages, posts, custom posts, etc. and add exact copies to a new language? Then content could be hand translated later without worrying about missing pieces.
Thanks!
David
The topic ‘PolyLang and get_posts()’ is closed to new replies.