-
Notifications
You must be signed in to change notification settings - Fork 0
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
Merging comments outside of single and comments_template #4
Comments
Hello, yes the plugin works for the single template which is where it gets the post ID of the other language(s). |
Can I get the other ID's outside of single if I have one of the ID's? In other words: Is it at all possible to merge outside of single? |
In theory yes. I'm not sure if it is possible at all as it will get a bit more complicated. One can always try though. |
Here is the solution if anyone is looking to do the same:
Just like your plugin code, except with the addition of switch_lang. Also if I may suggest adding if ($otherID) logic to multilingual-comments-wpml.php Adding that check prevents that from happening:
|
Thank you for the suggestion! I will add it to the source code (or if you want you can do a PR) sometime soon :) |
* date: May 22, 2024 * add condition to prevent $otherID returning `null` ([issue #4](#4 (comment)) props to [@Lindfyrsten](https://github.com/Lindfyrsten) * add Requires Plugins header introduced in WP 6.5
Trying to show comments for every post on archive using:
This only gets me the current language comments. Is the plugin only supposed to work when on a single template?
The text was updated successfully, but these errors were encountered: