Tag Info

New answers tagged

0

My solution: add_action( 'wp', 'my_404' ); function my_404() { if ( is_404() ) { header("Status: 404 Not Found"); global $wp_query; $wp_query->set_404(); status_header(404); nocache_headers(); //var_dump(getallheaders()); var_dump(headers_list()); die(); header("location:".homeurl()) or ...


0

You can redirect the 404 back to the author template with this function: function slug_show_authors_without_posts( $template ) { global $wp_query; if ( $wp_query->query_vars[ 'post_type' ] === 'author' ) { return get_author_template(); } return $template; } add_filter( '404_template', 'slug_show_authors_without_posts' ); Here ...


0

I found the solution. I had to open up phpMyAdmin open up the database then open up wp_options. From there I had to change the siteurl and add /wp to the end and it works again.



Top 50 recent answers are included