This topic contains 8 reply and 2 voices, and was last updated by Denis 5 years, 10 months ago
Viewing 8 Posts - 1 through 8 (of 8 total)
Author Posts
December 5, 2013 at 12:36 am 13323
Denis Hi there, In the dashboard, all my posts a shown, even if I dont post them via the plugin. How can I exclude a special category in the dashboard not to show up. Cheers, Denis
December 5, 2013 at 12:33 pm 13356
Tareq Hasan Tareq Hasan

You can add filter on the dashboard query and remove posts from a certain category.

December 6, 2013 at 12:21 pm 13404
Denis Denis

what is the args for categories?

December 7, 2013 at 2:27 am 13442
Tareq Hasan Tareq Hasan

You can add multiple category id’s to exclude:
'category__not_in' => array( 2, 6 )

December 9, 2013 at 9:02 pm 13551
Denis Denis

where can I find an ARGS list?

December 11, 2013 at 5:17 pm 13619
Tareq Hasan Tareq Hasan

The link is in my previous post.

December 12, 2013 at 3:23 am 13634
Denis Denis

🙂

I cant get it to work…

function wpufe_dashboard_sort( $args ) {

    'category__not_in' => array( 2, 6 )
 
    return $args;
}

add_filter( 'wpuf_dashboard_query', 'wpufe_dashboard_sort' );
December 14, 2013 at 2:10 am 13688
Tareq Hasan Tareq Hasan

You did a little mistake:

[php]
function wpufe_dashboard_sort( $args ) {

$args[‘category__not_in’] = array( 2, 6 );

return $args;
}
[/php]

December 16, 2013 at 2:43 am 13731
Denis Denis

Hey Tareq,
thanks a lot, that works great!!!

Maybe you can help me here, too. its a little off topic, but it seems to be the same.

I want to set the args (parameters) for this wp

previous_post_link and next_post_link

I need to do it in my function.

like:
add_filter (next_post_link, my_new_post_link)
add_filter (previous_post_link, my_new_post_link)

function my_new_post_link($args){

in_same_cat = true;

}

maybe you can have a look here, too.
cheers,
Denis

Viewing 8 Posts - 1 through 8 (of 8 total)