[wpuf_dashboard] not showing private posts

This topic contains 2 reply and 2 voices, and was last updated by ronilagin 10 years, 12 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
March 31, 2013 at 6:09 pm 1687
ronilagin Hello, I added some code to my functions that sets my custom-post-type posts to automatically be set to private.  I think there was an option for this in the plugin but it wasn't really working for me.  Now that I've done this none of the posts created are showing up on my [wpuf_dashboard] page.  Any way to address this?
March 31, 2013 at 6:21 pm 1691
Tareq Hasan Tareq Hasan

Currently specifically draft, future, pending and publish post statuses are fetched.

To be able to modify the dashboard query change the line $dashboard_query = new WP_Query( $args ); to $dashboard_query = new WP_Query( apply_filters( 'wpuf_dashboard_query', $args ) );. So you would be able to filter the dashboard query with the wpuf_dashboard_query filter. This filter will be added in a future release, so it’ll be safe.

Another problem you’ll have if you have private post status, that will be the post status column. It won’t show the private post status. So edit with your own risk, possibility to be removed with an update.

You could also change the wpuf_show_post_status function from:
[php]echo ‘<span style="color:’ . $fontcolor . ‘;">’ . $title . ‘</span>’;[/php]
to
[php]$show_status = ‘<span style="color:’ . $fontcolor . ‘;">’ . $title . ‘</span>’;
echo apply_filters( ‘wpuf_show_post_status’, $show_status, $status );[/php]

March 31, 2013 at 8:02 pm 1696
ronilagin ronilagin

You’re awesome, thanks so much.

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