Viewing 1 replies (of 1 total)
  • Would playing around with this be of any help

    function onlyinclude_tag($query) {
    if ( $query->is_home() && is_user_logged_in()) {
    	$query-> set('category__in',array('green'));
    	}
    return $query;
    }
    add_filter('pre_get_posts','onlyinclude_tag');

    Change the if conditions and the category (green) to suit you

    and place function in the functions.php of your theme

    see also https://codex.www.ads-software.com/Class_Reference/WP_Query

    May help

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Restrict Categories] Restricting categories for users programmatically’ is closed to new replies.