Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function add_my_post_type_to_archives() {
- return "WHERE (post_type = 'post' OR post_type = 'my_post_type') AND post_status = 'publish'";
- }
- add_filter('getarchives_where', 'add_my_post_type_to_archives');
Add Comment
Please, Sign In to add comment