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
WPML compatibility #12
Comments
Thanks for reporting. Hear that, @baden03? :) |
Oh I hear that alright! @johnraz: Which version of the plugin are you using 0.7 or 0.8-alpha? What is the version of WPML you tested this with? Can you confirm that connectable posts in the SAME LANGUAGE are being displayed in the connections search results? Very excited to hear this if it is true! |
@baden03: $connected = new WP_Query( array( And everything is working - Only relations made for the active language are displayed. I'm using posts2posts v0.7 and wpml 2.3.0 on a fresh WP 3.1.3 install with twentyten. Hope it helps ;-) |
@johnraz - Thank You for the reply! It seems that the connection issue is NOT with the posts-to-posts plugin, but rather with the older (open-source) version of the WPML plugin. Will upgrade and report back. |
@baden03: |
@johnraz: I went ahead and shelled out the $80 for the plugin, and yes, everything is working MUCH better. I did notice one area that the p2p plugin could be improved: When setting up the connections, it would be great to define not just the post_type to connect, but at what depth. Only connect posts at level 1: No sub pages, or level 2: Parents and first level children, etc... But all-in-all it seems that p2p works great with the latest version of WPML! Yay for Jedi master programming skills! |
You can do that by defining your own box: https://github.com/scribu/wp-posts-to-posts/wiki/Custom-boxes |
Back to the original subject: It seems that posts2posts doesn't switch the language context when using the "edit translation" button in the side-panel but only when using the top language tool-bar of WPML. Any idea why ? |
I suggest you ask that question on the WPML support forums. I have neither access to the source code of WPML (the commercial version), nor interest in spending time on making posts-to-posts compatible with it. As I've said previously, I am willing to add actions and filters that would enable WPML (and other plugins) to be compatible with P2P (not the other way around). |
Sounds fine to me ;-) |
Check out our new p2p-wpml plugin at https://github.com/cubica/p2p-wpml, it should solve most of the integration issues you reported. Hope that helps, bye! |
Cool; added to the wiki. |
Yeah ! Nice work @cubica , can't wait to test this out ! Thanks ! |
Just wanted to report that so far in my testing wpml seems to be fully supported.
I don't know if it was on purpose or if it's just a consequence of both side using best practices.
I'm amazed it's working just fine out of the box.
Thanks for the quality work scribu ;-)
The text was updated successfully, but these errors were encountered: