Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)

I’m assuming you’re referring to: get_template_directory() get_template_directory_uri() get_template_directory() is an absolute path – so if you’re including a PHP file that is in your template directory this would be a good function to use. If you’re using a child theme and need to reference something in the parent theme you could also use this function. … Read more

Creating page-templates directory breaks everything!

When a page is assigned to a template, this template selection is saved in the post meta table under the key _wp_page_template. These template values are as follow default if no page template in explicitely set {$template}.php for templates in root subfolder/{$template}.php for templates in a subfolder where subfolder should be the name of the … Read more

WordPress Multisite with thousands of blog

The number of tables is not an issue by itself. Actually separating the tables for each blog make each operation related to a specific blog more performant. Your scaling problem will come more likely from the big monolithic users tables. Scaling issues will come from the amount of requests your DB will have to handle, … Read more