What are custom_css and customize_changeset used for?

A fresh wordpress install has the following post types: Post (Post Type: ‘post’) Page (Post Type: ‘page’) Attachment (Post Type: ‘attachment’) Revision (Post Type: ‘revision’) Navigation Menu (Post Type: ‘nav_menu_item’) Custom CSS (Post Type: ‘custom_css’) Changesets (Post Type: ‘customize_changeset’) https://codex.wordpress.org/Post_Types doesn’t address what the final two are used for. Could anyone explain? 1 1 The … Read more

Custom post type pagination 404 fix?

Been trying to get this working all day but haven’t had any luck… I have a custom post type called ‘news’ and an archive template (archive-news.php), here I’d like to show 2 posts with pagination, which works fine, until I try to go to the ‘next page’ (/news/page/2) which returns an error 404. Any idea … Read more

Use register_post_type() to modify an existing post type

There are lots of situations where a theme or plugin registers a post type and you want to modify it. There is of course add_post_type_support() and remove_post_type_support(), but those don’t give access to the full list of arguments that register_post_type() takes. In particular, maybe I want to disable a post type archive, hide the admin … Read more