Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'wp', 'clear_404_on_list_view' );
- function clear_404_on_list_view() {
- global $wp_query;
- if ( ! tribe_is_list_view() || ! is_404() ) return;
- $wp_query->is_404 = false;
- status_header( 200 );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement