Custom Taxonomy Archives Page Errors

The problem is this: register_taxonomy(‘author’, ‘post’, array( //tax args here… )); The first argument, which is taxonomy name, you’ve set to author. WordPress uses that value as the taxonomy query var if a value isn’t explicitly declared. When this taxonomy is queried, author is used to pass the requested term slug to the query. The … Read more

Some links broken after updating WordPress version

Search the theme source-code for SITE_HOME_URL and try replacing it with WP_HOME or with the result of esc_url(home_url()). Locate THEME_PATH and replace it with the result of get_theme_root(). EDIT: In the case of expressduplication.co.uk/SITE_HOME_URLspecial-offers there is probably a wp_redirect() or wp_safe_redirect() that doesnt work because of the undefined constant SITE_HOME_URL.

HTTPS permalinks resulting in 404

You can use template_redirect to force all the http traffic going through WordPress to use https: function force_secure_navigation() { if ( ! is_ssl() ) : $url=”https://” . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’]; wp_redirect( $url, 301 ); exit(); endif; } add_action( ‘template_redirect’, ‘force_secure_navigation’, 1 ); Remember that if you are working with https it’s important to also serve … Read more

404 Page not Displaying

If it is not going to your 404.php , then is it redirecting to index.php. a. If it is redirecting to index.php, can you please update the permalink setting and update the .htaccess file with that. b. If the situation still arises can you please try deactivating the plugins one by one and see if … Read more

Custom Post Type Rewrite – Page Not Found

If you are using this in a plugin, from the codex: To get permalinks to work when you activate the plugin use the following example, paying attention to how my_cpt_init is called in the register_activation_hook callback: add_action( ‘init’, ‘my_cpt_init’ ); function my_cpt_init() { register_post_type( … ); } function my_rewrite_flush() { // First, we “add” the … Read more