Hi @tadama,
The photos and (text) displayed is correct but the links to the post go to english instead of german (…)
I checked that URL you shared and I don’t see anything out of the ordinary.
Here’s the HTML output I’m seeing when I visit https://www.urbanchangelab.com/de/category/massanfertigung/:
<div class="wpp-grid">
<p></p>
<ul class="wpp-list">
<li>
<a href="https://www.urbanchangelab.com/de/three-cutlery-boxes/" target="_self">
<img src="https://www.urbanchangelab.com/wp-content/uploads/wordpress-popular-posts/106930-featured-150x150.jpeg" alt="" class="wpp-thumbnail wpp_featured wpp_cached_thumb" width="150" height="150">
</a>
</li>
<!-- Rest of the code removed for brevity -->
</ul>
</div>
The currently active language is German so WPP is linking to the German version of these articles. Why are you saying that the links are pointing to the English version instead?
I also checked the English version of that URL (https://www.urbanchangelab.com/category/custom-made/) and likewise the shortcode works as expected:
<div class="wpp-grid">
<p></p>
<ul class="wpp-list">
<li>
<a href="https://www.urbanchangelab.com/three-cutlery-boxes/" target="_self">
<img src="https://www.urbanchangelab.com/wp-content/uploads/wordpress-popular-posts/106930-featured-150x150.jpeg" alt="" class="wpp-thumbnail wpp_featured wpp_cached_thumb" width="150" height="150">
</a>
</li>
<!-- Rest of the code removed for brevity -->
</ul>
</div>
As you can see, this time the shortcode is using the English URLs. Everything is working as intended.
14 is the english category if I replace with the german category which is 11 there will be “sorry no content”
Of course, posts that don’t have the English category will be filtered out. Same applies to the ones that don’t belong to the German category. This is how WPP has always worked, so no issues here either.
Passing the cat
parameter both category IDs should fix the “problem”:
[wpp post_html='<li>{thumb}</li>' cat='11,14' post_type='post' thumbnail_width=150 thumbnail_height=150 stats_views=0 stats_author=1 range=last7days limit=12]
Or you could just remove it altogether:
[wpp post_html='<li>{thumb}</li>' post_type='post' thumbnail_width=150 thumbnail_height=150 stats_views=0 stats_author=1 range=last7days limit=12]
P.S. You didn’t close the <li>
tag. I fixed that for you.