Little changes in wordpress behaviour with polylang 0.9
-
Hi,
This seems not to be a bug but it could be a misuse by myself previously : there has been a little changes in polylang behavior. If you use for example :
wp_get_recent_posts( array( 'numberposts' => $instance['numberposts'], 'post_status' => 'publish' ) );
which was correctly returning post for the current language displayed with version < 0.9. Now with polylang 0.9 you need to explicitly says you want a specific language like that :
$recentposts = wp_get_recent_posts( array( 'numberposts' => $instance['numberposts'], 'lang' => pll_current_language(), 'post_status' => 'publish' ) );
If you have the problem, I hope it would help you…
Regards,
Fran?ois.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Little changes in wordpress behaviour with polylang 0.9’ is closed to new replies.