Custom taxonomy returns 404 even with saving permalinks

I’ve found my solution.. In my functions.php I found the following functions which returns a 404 on several types: function remove_wp_archives(){ //If we are on category or tag or date or author archive if( is_category() || is_tag() || is_date() || is_author() || is_tax() ) { global $wp_query; $wp_query->set_404(); //set to 404 not found page status_header(404); … Read more

Remove all feeds and return custom 404 page

Your plugin file should consist of exactly this code: <?php /** * Plugin Name: T5 404 Feed * Description: Sends a 404 status code for all feeds and loads the <code>404.php</code> template. */ add_action( ‘template_redirect’, ‘t5_404_feed’, 1 ); function t5_404_feed() { if ( is_feed() ) { status_header( ‘404’ ); header(‘Content-Type: text/html’, true); locate_template( array ( … Read more