New version – implemented “show only the primary article”
-
Hello,
I am using your great plugin for quite a while and having the same need you described in the feature request “Group posts / show only the primary article“. Even if polylang pro has a feature to overcome this, I was not happy with buying the license for a small personal blog, and also not happy with the solution that involves many post duplication.
So I implemented it. It works by building an exclusion list of posts that are translated in the least wanted language to keep only the most wanted translation. This list is given to the query. By doing so, it will behave ok with pagination. The exclusion list is cached if the site does implement persistent object cache.
I also added a settings page, to allow to customize the way the best language will be chosen, and enabling/disabling some features. It is so possible to set the original behavior of the plugin, or use the new features.
Hope you are doing well, I don’t know if you are maintaining this plugin anymore, but this could be useful also for other polylang users.
The GitHub repo for this new version : https://github.com/rpeyron/wordpress-language-mix
Many thanks for this great plugin (and for making it open source)
Best regards
- The topic ‘New version – implemented “show only the primary article”’ is closed to new replies.