• Resolved Rob Roy

    (@danetidwell)


    I did a google search for possible solutions but I’m not sure if I’m phrasing it correctly, as nothing really showed up that addressed changing the default, only adding new filters.

    When a user clicks on “Posts”, the default view of “all posts” loads. Is there a function code snippet that would change this default to “scheduled” or “draft”?

    I know this is a usability discussion, but I have editors that when they click on “Posts”, they never see the ones that are pending review because they are so far down the “all posts” list, so I’d like for the default to show them what they need to edit… first.

Viewing 4 replies - 1 through 4 (of 4 total)
  • This is definitely possible, but I’m guessing you want to maintain the ability to view all posts as well, correct? So maybe it would be best to change the link in the sidebar rather than modify the data when the posts are loaded.

    Here’s a way to do it (super quick, tested briefly, but should work): https://gist.github.com/nickohrn/9578592

    Basically, when the menu is set up, this little snippet changes the “All Posts” menu item to link directly to the Pending Review posts listing. It still allows the user to get to posts of any status, though.

    There may be other ways to do it, but in the meantime you can either copy and paste that into your theme’s functions.php file or (my recommendation) save as a separate file and drop in /wp-content/mu-plugins/

    Thread Starter Rob Roy

    (@danetidwell)

    Thanks a ton! I’ll try it out now.

    Let us know if it worked!

    Thread Starter Rob Roy

    (@danetidwell)

    Worked like a charm, used the functions.php method over a plugin. Thanks a lot!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change default Posts edit.php filter landing’ is closed to new replies.