Only homepage working correctly, 404 error on everything else
Only homepage working correctly, 404 error on everything else
Only homepage working correctly, 404 error on everything else
Turned out to be interference from another Flatpack hack I had in place to stop it displaying child CPTs when outputting its widgets. For reference, the damage was being done by a pre_get_posts hook. Worth checking this if you’re similarly stuck.
Taxonomy for custom post type not found
does your query have this $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args = array( ‘posts_per_page’ => 3, ‘paged’ => $paged ); query_posts($args); see documentation about pagination http://codex.wordpress.org/Pagination
Logging out gives 404 error
Heree’s a code solution, not htaccess. This first checks if current query is for a category page, then checks category existence, and if category not exists but a tag with the same name, it redirects to the tag page. add_action(‘parse_request’, ‘wpse_parse_request’); function wpse_parse_request( $r ){ if( isset($r->query_vars[‘category_name’]) ) { $cat = get_term_by(‘slug’, $r->query_vars[‘category_name’], ‘category’); if( … Read more
Why are 404 errors redirecting to my homepage and not my custom 404.php?
Getting 404 page not found error while trying to access add new plugin / themes
Pagination in custom loop for custom post type throwing 404 error
Moved my site to new host now getting 404