Preventing 404 error on empty date archive

You can move the code from OP’s answer into a 404 template filter and force WP to load the date.php file instead of 404.php. It’ll still send the 404 header, but render the page with a different template. function wpd_date_404_template( $template=”” ){ global $wp_query; if( isset($wp_query->query[‘year’]) || isset($wp_query->query[‘monthnum’]) || isset($wp_query->query[‘day’]) ){ $template = locate_template( ‘date.php’, … Read more

Why would a GET variable one one page of a site cause a 404 error when a GET variable works on another page of a site?

WordPress has a list of reserved terms that you cannot use for taxonomies. From your question, I gather that “cooked” is a taxonomy that applies to eggs and “type” is a taxonomy that applies to sausage. Unfortunately, “type” is a reserved term in WordPress, so it interprets your query string differently than you expect. The … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)