

Sometimes you have a post type that needs to stay private, like video tutorials for your clients or a quotes for products that should not be seen by the public or indexed by the search engines. The snippet below will allow you to set all posts from a given post type to private by default.…

By the default if you create Custom Post Type attaching Category to it is not possible. On the line: array( ‘post’, ‘resource_libraries’ ), replace “resource_libraries” slug to your custom post type slug. Code Snippet Add Code Snippet Open Scripts Organizer Hit Add new. Scripts Organizer Settings Trigger Location: EverywhereScript Location: PHP
3rd party plugins actions admin after_body archive Blocks build Category config core CPT CSS Custom Post Developer development Front End hook Image img include js livereload load styles loop Must Have notice npm Oxygen plugins publish release repeater script scss settings page share single product Taxonomy themes Tips webpack WooCommerce wordpress WP Admin WPML