WordPress Installation in Subfolder only works half

OK after doing some more research I found out that I had to change the configs for the NGINX files as well. I simply had to add the following parameters before the last closing bracket location /nameofnewsite { try_files $uri $uri/ /nameofnewsite/index.php?$args; } location ~ \.php$ { fastcgi_split_path_info ^(/nameofnewsite)(/.*)$; }

How can I redirect users on the new 404 page without plugin?

You can assign the 404.php as a template to your custom 404 page created with the page builder. You would need to edit the 404.php to something like this: <?php /** * Template Name: 404 */ get_header(); $query = new WP_Query([ ‘posts_per_page’ => 1, ‘post_type’ => ‘page’, ‘meta_key’ => ‘_wp_page_template’, ‘meta_value’ => basename(__FILE__) ]); if … Read more

Theme javascript/css 404

Thanks to @jacob peattie for helping me to figure this out. The issue is that I had WP_CONTENT_URL set incorrectly. Removing it fixed the issue. I could have added /wp-content to the url and it would’ve solved the issue as well. To explain why this caused in issue, I turned to the docs. This page … Read more

Permalink Problems

Sorry guys, this is becoming a habit, but I found a solution, as follows: set rewrite to false in taxonomy registration: register_taxonomy(‘property_type’,array(‘sbproperty’), array( ‘hierarchical’ => true, ‘labels’ => $labels, ‘show_ui’ => true, ‘query_var’ => true, ‘rewrite’ => false )); And create my own rule add_filter(‘rewrite_rules_array’,’wp_insertMyRewriteRules’); add_filter(‘init’,’flushRules’); function flushRules(){ global $wp_rewrite; $wp_rewrite->flush_rules(); } function wp_insertMyRewriteRules($rules) { … Read more