Excluding post using PID arg, works in English but not french (Polylang)
-
Hi, I’m trying to exclude the current post from displaying in the popular post list, I’m using Polylang plugin, this code works in English, but not in French:
$args = array( 'post_type' => 'post', 'limit' => 3, 'cat' => '52,46,42,50,54,44,48', 'pid' => array( $post->ID ), 'stats_views' => 0, 'range' => 'all', 'freshness' => 1, ); wpp_get_mostpopular( $args );
Any suggestions? thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Excluding post using PID arg, works in English but not french (Polylang)’ is closed to new replies.