Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function alx_custom_post_archive( $query ) {
- if ($query->is_archive)
- $query->set( 'post_type', array( 'code', 'themes', 'nav_menu_item', 'post') );
- remove_action( 'pre_get_posts', 'alx_custom_post_archive' );
- }
- add_action( 'pre_get_posts', 'alx_custom_post_archive' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement