- Debug Config
- Template Hierarchy
- Tables in multisite
Before starting with debugging we have to first define this constants in the wp-config.php file
define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true ); // WP 5.2 and later
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', true );
Template Hierarchy
WordPress uses templates to display content and there can be many templates depending on the use case for custom post types archives we can create templates and then for a single movie, we can create a template.
But, for creating a theme we need only one files index.php, so in wordpress template hierarchy index.php is the last one so if no template is found then at last index.php is used.
Learning about template hierarchy is important as we can then use it to make our own templatates for like custom post types or archive etc

Tables in Multisite
When creating a multisite installation of wordpress, few extra tables are added along with default tables.
wp_sitewp_sitemetawp_signupswp_blogswp_blogmetawp_registration_log


Leave a Reply