function posts_for_current_author($query) {
global $pagenow;
if( 'edit.php' != $pagenow || !$query->is_admin )
return $query;
else {
$query->set('cat', "-11");
}
return $query;
}
Related Posts:
- How to remove a column from the Posts page
- Update post counts (published, draft, unattached) in admin interface
- How to display by default only published posts/pages in the admin area?
- Set Default Listing “View” in Admin
- display all posts in wordpress admin
- Sends out email to admin
- Can I force a metabox to be in one column?
- Add a new post status in the post progression
- Help! Turn php link data into url OR hide edit link in post admin OR hide drafts for all users except admin?
- Modifying admin sidebar contents to show pending posts indicator
- Any way to create a revision of a post ONLY with a new button in the Meta Box?
- using slug instead of ID in admin edit post url
- How to Load Scripts and CSS for Admins Only When Editing or Adding Posts
- Add “Post Options” for new wordpress post
- Post Admin – Filter by posts without tags
- Add javascript when post is published
- Why does the_date work in the first custom column, but not in the second, in a series of customized Posts columns?
- Add link on the top menu of the post table?
- Add a special filter link to All Posts in admin
- which action to hook to in order to perform post-publish action
- Make “Post published. View post” Open in a New Tab
- Overview with latest edited posts and pages
- Hiding by default specific post status on backend list?
- Custom colors for post rows based on post meta value
- How to add an admin function only to posts, not pages?
- prevent showing posts of an specific category in admin posts section
- Remove whitespace at the end of posts?
- Allow role to delete posts but block him the wp-admin
- Is there a way to change the color of a row in Post Administration based on the type of post?
- Add filter-by-tag in the all posts admin console page
- How to get a nofication when post submitted
- How do I add a custom body class to the admin area of a page?
- Adding a text link under the post title in the lists of posts
- Is it possible to change the admin posts per page view?
- Remove the Edit button in posts for permalinks on certain user roles? WP 3.3
- Change default Posts page
- Show info to author only
- Disable inline_edit() on edit.php
- Change target of view link in admin
- Prevent additional top level categories but allow more children
- WP Admin register taxonomy and post type performance
- Publish post’s date is set to Nov 30 -0001
- Admin – create custom post status and display above table
- plugin to post from admin to flickr [closed]
- All Posts admin screen – show time underneath the ‘Date’?
- Get post ID in post/page edit area
- How to remove specific tag from multiple posts?
- How to detect when admin user is on the All Posts page?
- All posts display default index.html
- How can I add a box to edit Order on a regular post?
- Filtering posts on Post Administration Page by Week Number instead of by Month
- How to add the time of a post to the list of posts on the administration page?
- Is there a way to add the list of recent posts into the admin sub menu on hover?
- How to add convenient buttons for new custom post statuses
- I don’t want the complete article to show on homepage
- After 3.5.1. upgrade, posts appearing on Site yet *NOT* in WP admin!
- Send email to admin with post author
- In admin panel, use a form to create a post?
- Add checkbox in admin post list – show checked post in widget
- Cannot create new posts or upload images using media manager
- Ignore posts content in the posts queries for internal linking
- How do I scope out why I have two “posts” menus in an admin?
- Put page on Archived statut after end of publication date
- Add view to admin menu to filter for specific criteria ( If post is child of specific Parent )
- problem with admin panel
- Ajax the create and edit post form into lightbox and get results
- Hide Admin posts & pages in Dashboard
- Creating widget – ask for selecting a post in the admin panel
- issue in wordpress auto delete post and redirect to another 1
- How to change the publishing date of each posts?
- Is possible to create a custom link that creates a post that’s already categorized?
- Why is $_POST Empty in Profile Edit Admin?
- Display the popular tags by default in the backend post edit page (without having to click on the link that displays them) [closed]
- WordPress Admin Tables in Post View
- Choose options via url
- Admin moderates ALL comments (including post author)
- Posts in Admin only display 1 Post instead of all
- How to remove a specific script from bulk wordpress posts and images description?
- Post Format Status [closed]
- 1 column admin screen options – move submitdiv to bottom
- Single Post Navigation Within Each Category
- Add confirmation popup on “Move to Trash”
- How to get the latest posting time of archived pages in WordPress?
- Different template for posts of all subcategories of category
- Mark menu item as current-menu-item for category
- How do I use WP_Query to get a range of posts with custom fields that have numbers with letters in them?
- Setup a custom dynamic post
- One menu for frontpage (one pager), and a different menu for posts
- Start post pagination at 0 instead of 1
- How to include my own css in post
- Add get_the_tags() to Single Posts section via functions.php
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- Posts Missing in Dashboard after update
- Retrieving posts by their date and category
- Author post count in category
- Show post count in custom taxonomy page
- Unable to get all the Posts Attachments
- view a list of 3 future post, from the nearest to the most far
- Printable Page with all Posts from Tag
- Wanting to apply different featured images for each post