Exclude polylang lanugage
-
Hi,
Is it possible to prevent the Polylang language to be broadcasted?
I want to broadcast for example a English article to a subsite that only has the Dutch language available. I tried this by not broadcasting the taxonomies since the language is a taxonomy, but it does still broadcast it, which leads to the creating of an extra language in my Dutch site.Thanks,
Joren
-
Are you using the Polylang Broadcast add-on? There is code in there that checks for non-existent languages and will prevent broadcasting if the language is not found.
Not using it atm, but I was writing an email to get some more information about the addon to see if it fits my needs.
mmmm I don’t want the plugin to prevent broadcasting, I want it to broadcast without a language, so that the site owner can choose the language. If your addon supports that I would be happy to pay for it!
Let me give you a brief example of what i want (aka my email)
I have 3 sites:
example.domain.com => splash page
example.domain.com/be => Belgium site with 3 languages (served by polylang) NL, FR, EN
example.domain.com/nl => Netherlands site with 1 language (served by polylang) NLWe want to to be able to share all content across sites even if the language doesnβt match. So Basicly it should be broadcast to the default language of the subsite or no language at all. Since the language in Polylang is a taxonomy I tried the same thing by excluding the taxonomies (uncheckd that checkbox ;)) but it still broadcasts the posts language even if it does not exist.
Hope my use case is clear to you and I hope the addon supports this.
Thanks,
Joren
ps. no email comming since, I explaind my needs above, so I hope you can send me some more info about the capabiliteis of the addon, or another one so I can solve my issue.Lemme have a quick think about this and I’ll get back to you a wee bit later today.
I’ve been doing some testing. The Polylang Broadcast add-on will probably have a setting allowing the admin to select what to do when a post language doesn’t exist on the child:
– do not broadcast
– broadcast in the default languageThe second option will be a headache since I have to prevent the language taxonomies from being created on the child blog.
There is no way to create a post in no language at all, from what I’ve seen.
I’ll keep you updated.
Hi Edward,
Thanks for the update. Can’t you just overwrite it? In some way our create a blacklist taxonomy in some way just as with the custom fields?
I did a bit of digging in the code myself but found no solution so far, that’s why I created the issue, you know your code and know where to look π I hope that there will be a solution since your plugin is the only one of his kind.
Hope to hear more soon, thanks!
Joren
Question: What should a post do the taxonomies? The categories, for example, are in the parent post’s language. Should the taxonomies just be dropped?
They can’t be synced either since they’ll be created in a language that doesn’t exist on the child blog.
I thinking dropping them seems logic, since the admin/author of the site that receives the post will add taxonomies in their own language.
But if the language does exist I would broadcast them, but only if it exists, off course.
The post self should be broadcasted anyway, just as the custom fields.
Hope this helps you.
There! I think I’ve got it.
The new functionality is ready for testing and will be included in the next version of the 3rd party and premium packs.
This will be included in the Polylang addon you mean? Ok thanks! Any idea when the new version will be released?
As soon as someone e-mails me and offers to test the functionality. π
I would love to test it
-
This reply was modified 9 years, 6 months ago by
jorenvh.
Tested the beta version and it works as aspected.
Great. Will add it to the next version of the pack.
-
This reply was modified 9 years, 6 months ago by
The topic ‘Exclude polylang lanugage’ is closed to new replies.