Need for Expiration on Custom Post Types
-
It would be awesome if there was a hook I could use in my functions.php document to add custom post types to the list of post types that the plugin appears on. Below is the code I used in a current custom theme I’m building.
global $post; if( !$post->post_type OR ( $post->post_type != 'page' AND $post->post_type != 'post' AND $post->post_type != 'classes' AND $post->post_type != 'staff' ) ) return;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Need for Expiration on Custom Post Types’ is closed to new replies.