WordPress Site Page Exists but Error 404

WordPress stores on the options table two urls for the site: siteurl and home. They should be the first two entries in the options table. Make sure that after migrating those two options match with your new domain. Duplicator should have taken care of it but just check to make sure.

Taxonomy term page going to 404

Following @CraigWayne’s suggestion to use Query Monitor… Message: “Use of undefined constant term_name – assumed ‘term_name’”. Count: 1. Location: wp-content/themes/elegant/taxonomy-source.php:38. Caller: wp-includes/template-loader.php wp-includes/template-loader.php:74. Component: Core. >>>>> Line 38 in taxonomy-source.php included “” it was objecting to term_name in my taxonomy-source theme file; I changed it to $term = get_queried_object(); followed by name; ?> The takeaway … Read more

Custom rewrite to fetch feed data

Seems like a good candidate for add_rewrite_endpoint(). add_rewrite_endpoint( ‘items’, EP_ROOT, ‘item_id’ ); That will register the endpoint /items/<item ID> and also registers the query var item_id, and eliminates the 404 status header/title as well. But the page title would be the site name and you’d probably still want to hook to pre_get_document_title to customize the … Read more

Page not found – Wamp green, phpmyadmin working

My first step would be to turn on WP_DEBUG in your wp-config.php file. Edit wp-config.php and add the following lines: define( ‘WP_DEBUG’, true ); Then visit your site’s admin (example.com/wp-admin) and see if an error appears. More than likely the plugin you just added broke the site, so you can go into your local filesystem … Read more