Custom post type, when type non existing post name, it query the nearest possible post name by default. How can I disabled this behavior
Out of the box, WordPress will try to be helpful and provide the next best post if it cannot find the one you specified – in your case example/t. This feature can be deactivated, however: function stop_404_guessing( $url ) { return ( is_404() ) ? false : $url; } add_filter( ‘redirect_canonical’, ‘stop_404_guessing’ );