Thread Starter
Kavik
(@kavik)
This code works in primary language:
<?php echo do_shortcode(‘[simple-links show_image=”true” image_size=”simpelinksLogo” category=”79″ ]’);?>
but its shows nothign with other languages.
Hi Kavik,
Sorry for the delay. While 3rd party plugin compatibility is important to us, it usually ends up being put on the back burner while we work on our own plugins.
Unfortunately the plugin you are working with is a premium plugin which we are not familiar with nor own a license to. That is not much we can do without code access.
I suggest contacted them to see what the issue is.
One thing to verify is that the plugin is active within the other languages.
Sorry I couldn’t be more help.
Cheers
Hi,
I had the same problem, and I made it compatible with wpml,
I can contribute in github when I have time,
but it is just a small change in the code, so if you are interested please let me know
Thread Starter
Kavik
(@kavik)
Hi wptestert
I’m very interesting in your solution. Can you explain it?
Thx!
Hi Kavik,
Yes, find this line (189) in /includes/SimpleLinksFactory.php :
$this->query_args[ 'post_type' ] = 'simple_link';
underneath that line, paste this:
// this line makes it WPML compatible
$this->query_args[ 'suppress_filters' ] = false;
that’s it!
The links in the widget will only appear in the right language.
de nada, whenever I am in Alicante I ll drop by for a good glass of wine 🙂