Installing wordpress on subdirectory 2 levels down

I managed to resolve this myself. Apologies for wasting anyones time. The fix was simple. I just had to add the following piece of code to my .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /jack/blog/ RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /jack/blog/index.php [L] </IfModule> Save my permalinks and the problem … Read more

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