List All Post Types in Admin view using /wp-admin/edit.php?post_type=

I have successfully created a custom post type. I’m trying to construct a URL which points to a combined listing of posts of all post types on the view all posts page in the admin view.

I can construct a URL which points to posts of specific post types, eg
http://<mysite>//wp-admin/edit.php?post_type=my_post_type. But I can’t find a way of listing posts of all post types.

Is it possible to use the /wp-admin/edit.php?post_type= slug to point to a page listing posts of all post types? Or, how else can I build a URL which will?

2 Answers
2

The only way this could work would be ?post_type=any based on WP_Query post_type params.

But the context is the problem, the edit.php page requires a specific post type, to display and edit only one $post_type_object which returns, for each post_type, only one singular label, one plural label and so many others individual properties.

These are not only technical blocking problems but also conceptual ones which make this impossible to be done.

Personally, I would research on “How to build a custom admin page” with a query like post_type=any

Leave a Comment