Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

Category filter not working for WprdPress 4.7.3

$
0
0

Replies: 0

Hello!
I couldn’t make this plugin work correctly when setting the category filter.
Found out that the error was here (wprps-template.php):


$args = array (
            'post_type'      => $posts_type,
            'orderby'        => $orderby,
            'order'          => $order,
            'posts_per_page' => $posts_per_page,
			'cat'       => $cat

            );

Replaced with this works fine, even if I guess that I should explode $cat.. haven’t tried yet.


        $args = array (
            'post_type'      => $posts_type,
            'orderby'        => $orderby,
            'order'          => $order,
            'posts_per_page' => $posts_per_page,
			'category__in'       => array($cat)

            );

Viewing all articles
Browse latest Browse all 67836

Trending Articles