WordPress.org

Ready to get started?Download WordPress

Forums

Edit Flow
[resolved] custom statuses filter list problem (4 posts)

  1. jorgitobg
    Member
    Posted 1 year ago #

    Hi,

    Im using edit flow and its a very usefull plugin, thanks!.

    I see when I use the post lists: /wp-admin/edit.php, that there is no all custom statuses on the "filter list", is there any way to show all custom statuses? (i.e. All | Published | {Custom Status})

    http://wordpress.org/extend/plugins/edit-flow/

    Hi,

    Im using edit flow and its a very usefull plugin, thanks!.

    I see when I use the post lists: /wp-admin/edit.php, that there is no all custom statuses on the "filter list", is there any way to show all custom statuses? (i.e. All | Published | {Custom Status})

    http://wordpress.org/extend/plugins/edit-flow/

    http://hermandadblanca.org

  2. cojennin
    Member
    Plugin Author

    Posted 1 year ago #

    There might be an easier way to do this that Daniel could point to, but off the top of my head I would probably start with the following:

    add_filter('views_edit-post', 'add_custom_post_types');
    
    function add_custom_post_types($views) {
    	$views['assigned'] = '<a href="?post_status=assigned&post_type=post">test</a>';
    	return $views;
    }

    Mind you, this is nowhere near complete. You'll need to add some more code to have it show how many posts there are of that post type, to show as selected, etc. But 'views_edit-post' should be the filter you need to take advantage of.

    If you need anymore help with the code, just post back here.

  3. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    We don't have an easy way to add an "All Custom Statuses" link at the moment. What are you wanting to do?

  4. jorgitobg
    Member
    Posted 1 year ago #

    Hi,
    Thanks all for answer, im trying to add some custom statuses generated with edit flow plugin... and now I see it appear OK on status list.
    Regards,

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic