You can hook into the load-edit.php
action to modify how wp-admin lists pages. Add this to your functions.php:
<?php
add_action( 'load-edit.php', 'namespace_modify_admin_list' );
function namespace_modify_admin_list() {
global $typenow;
if ( 'post' !== $typenow )
return;
add_action( 'pre_get_posts', 'namespace_modify_admin_list_posts' );
}
function namespace_modify_admin_list_posts( $query ) {
/**
* Modify query here to change how posts are listed, using
* the set method of the query object.
*
* Example:
* $query->set( 'posts_per_page', 10 );
*/
}
?>
May I ask why would you want to hide posts that have more than one category? Is this for access-control or filtering purposes?
Related Posts:
- Exclude posts with specific meta_value while sorting by a separate meta_value
- How to Change Order of Posts in Admin?
- How to display by default only published posts/pages in the admin area?
- Random sort within an already sorted query
- Different post sort order within different categories
- Setting Custom Sort Order of Posts within a Category
- Can I force a metabox to be in one column?
- Skipping first 3 posts in wp query
- How to Group Posts by the First Letter or Number?
- How to Arrange Posts by Size in the WordPress Dashboard?
- List latest posts in WP-Admin
- How to put last edited entry on top of the blog-post list?
- blog posts sorting doesnt work while using get_query_var
- How to sort posts by last name (2nd word) on ONE category only?
- Group Posts by First Letter of Title
- Exclude ALL posts from sub categories
- Getting an alphabetic post list with two letters onclick on letter
- Change default screen option value for posts per page
- Sort wp post title with alphabetically and numerically?
- Hiding by default specific post status on backend list?
- Possible to create a permalink to sort with meta_key?
- How to choose a sort order (for posts) per category? (ideally when creating a new category)
- Plugin for sortable posts in grid [closed]
- Populating a page with content from post custom fields
- How to display sorted posts in the ‘All Posts’ page
- Save list from a custom meta box?
- Sort posts by newest child while keeping hierarchy intact
- Sorting posts alphabetical that have single digits
- How to set post expiration date and time and move the page to archive after expiration [closed]
- Sorting posts according to the term they belong to
- Sorting posts according to view counts not working
- Server-side sorting of posts
- WordPress’ visual editor messing up my (nested) lists (and other things as well)
- how to get posts ids inside pre_get_posts filter?
- How do I exclude the current post from listing in recent posts
- Show certain posts in a LIST format that members have been granted access to
- How to sort posts inside categories
- List all categories with featured image from post?
- Exclude the first ‘n’ number of posts of a tag from home page?
- How to display posts via custom taxonomy terms using checkboxes?
- how can i change WP main archives loop to sort by name or title
- how to get post order by post id wp_query?
- Excluding posts not working
- Conditionals if tags exist?
- How do you change the comment count in the back end posts list, to reflect unapproved comments, rather than all comments?
- Sort Custom Post Type by Category ID then Post Name
- Loop doesn’t exclude the specified category in home page
- show posts under subcategory only when in that subcategory
- How to exclude posts that already appear in the main loop, from the category loop
- Post filtering is returning blank page
- Sort by last word in title
- How to get post with slug and exclude categories
- List all posts, pages and custom post types in admin
- Exclude post category in a blog page
- Use posts_where to exclude posts ids from wp_query
- Sort All Posts by Category Name in the Admin Panel?
- Conditionally exclude post from specific category on home page sidebar?
- How to list post as buch of category, and all of them
- Highlighting Current Category in the Archive and Feeds page
- Show 10 latest posts only from users with contributors role
- How to display list of results
- How can I globally italicize list of texts in the UI database or Posts? [closed]
- How to sort WP_Post Object array by object field in php?
- Sorting post by custom field and category
- Excluding category from post navigation in WordPress?
- Ajaxify Post Sort
- How to sort posts in admin by name
- Sort / Filter Queries
- Sorting Posts by Date – get_blogs_of_user_id()
- Create a Page Template Which Displays All Posts by Current User
- Sort Posts Alphabetically by Multiple Categories [duplicate]
- How to get alphabetic listing x other posts, based on first letter post?
- Last three posts not being put in order by date. How to fix this?
- Sort by category and then date?
- List posts that are in the same category as the current post title
- Display all posts from selected month
- Exclude a ‘portfolio’ custom category?
- custom sort posts in archive/taxanomy page
- How to display my categories in a list (to a post, not the sidebar)?
- Dynamic archive of posts by date
- Filter/Sort Post Form On Taxonomy page
- Sort Posts Alphabetically Based on Specific Category (Divi)
- How to sort posts alphabetically based on a specific parent category
- How can I enable checkboxes for custom post type posts on their post list – WordPress
- How can I change the post order after filtering in WordPress?
- Exclude the Newest Recent Post from their Category After New post Publish old post should be in their category at Home Page
- Slug collision between page, taxonomy and custom post type
- Populate a drop down list with post titles across a multisite network
- Show 5 posts and than 3 posts offset with pagination
- If taxonomy has more than 6 posts, display show all
- My posts page is missing the page title
- Hiding title of selected post without plugins
- What’s the best approach to create duplicated pages with paginated posts?
- Very weird behaviour after removing WP pages
- Blog Post slider not working
- Double loop output
- AJAX load more posts not using correct category and repeating the same few posts
- I need some explanation on global $post [duplicate]
- Custom permalink for wordpress page / post
- How to Display Most View Post in the template file?