Filter Posts by Excluding Categories

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 … Read more

Every possible way to get data (posts) from WordPress

Since you aren’t able to use the out-of-the-box functionality (i.e. not publishing the posts!) you will inevitably have to cover yourself in a few different ways. You seem to have most of them covered – but a couple more ideas: The single post page itself. Assuming you are OK with the post never being visible … Read more