This topic contains 7 reply and 3 voices, and was last updated by docandtee 6 years, 2 months ago
Viewing 7 Posts - 1 through 7 (of 7 total)
Author Posts
July 4, 2013 at 2:01 pm 5579
docandtee Hell again I recently posted a question asking if it is possible to add more than one custom post type to the dashboard. I was given this code, which does work:
function wpufe_dashboard_post_type( $args ) {
    $args['post_type'] = array( 'independentartist', 'representedartist', 'artistgallery', 'artistcommission', 'artistvideo', 'artistblog' );
 
    return $args;
}
 
add_filter( 'wpuf_dashboard_query', 'wpufe_dashboard_post_type' );
However, this just lists all of the user posts as 'posts'. Is there any way to break this down so that the user can see how many posts they have added for each custom post type? Many thanks
July 4, 2013 at 10:04 pm 5604
Tareq Hasan Tareq Hasan

Sorry, there isn’t a way other than creating your own dashboard.

August 29, 2013 at 9:34 pm 7633
docandtee docandtee

Hi Tareq
Sorry for re-opening this thread after a nearly two months!
I’ve decided that I really do need to separate out the custom post types in the dashboard.
In your last reply you mentioned that the only way to do this would be to create my own dashboard.
Can you point me in the direction of how I might go about doing this please?
Apart from this one niggle your plugin is spot on!

Cheers

D

August 29, 2013 at 9:44 pm 7635
Tareq Hasan Tareq Hasan

You said you just need to show the count of each post type he has created, right? That’s the only change I can see you are asking for?

August 29, 2013 at 9:47 pm 7636
nonameolsson nonameolsson

I am doing a similar thing. But I’m using jQuery FooTables or DataTables to be able to sort and filter them out. Could that be a way to do it?

August 29, 2013 at 10:47 pm 7639
docandtee docandtee

Hi Tareq
Sorry I wasn’t clear enough in my original question.
What I actually want to do is break down the dashboard table into post type sections.
Like this:

Custom Post Type Video Posts:
video post 1 – edit
video post 2 – edit

Custom Post Type Gallery Posts:
gallery post 1 – edit
gallery post 2 – edit

etc etc.

At the moment it just lists all the different custom posts together in one long table so you can’t see what post type each post is.

Does that make sense?

Thanks

D

August 29, 2013 at 11:57 pm 7640
Tareq Hasan Tareq Hasan

@nonameolsson Nope, he is not asking that.

@docandtee, may be you can use multiple dashboard shortcodes for different post types in a single page. That should do.

September 10, 2013 at 6:14 pm 7987
docandtee docandtee

Hi Tareq
Yes, I went for similar approach in the end. I’ve set up multiple pages and a menu for each dashboard to navigate between views for different post types. Don’t know why I didn’t think of this before!

Thanks

D

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