WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to add links on the top, as pictured below?

Post list views

share|improve this question

They are filtered via the views_[screen-id] filter. The screen-id of the edit post page is edit-post, so you can modify the links like this:

add_action( 'views_edit-post', 'wpse17484_views_edit_post' );
function wpse17484_views_edit_post( $views )
    $views['wpse17484'] = '<a href="my-url">My action</a>';
    return $views;

You can see the code that generates the post views in WP_Posts_List_Table::get_views().

share|improve this answer
Thanks. Thank you. That was exactly what I was looking! – andre May 17 '11 at 15:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.