Making a Custom Post Type Plugin – keep getting the white screen of death

You are closing your function right after the $args array. You need to enclose properly function local_business_directory_register() { $args = array( ‘label’ => __(‘Business Directory’), ‘singular_label’ => __(‘Business’), ‘public’ => true, ‘taxonomies’ => array(‘category’), ‘show_ui’ => true, ‘capability_type’ => ‘post’, ‘hierarchical’ => true, ‘has_archive’ => true, ‘supports’ => array(‘title’, ‘editor’, ), ‘rewrite’ => array(‘slug’ => … Read more

Why would adding a template file to a child theme cause an error in template-loader.php?

Your initial idea is correct, WordPress shouldn’t look for index.php if it finds category.php for a category archive. However, that may change if you don’t have file permission and ownership set properly, or if FileSystem cache is messing with file_exists() check. Follow these steps: Make sure your child theme files are readable by the web … Read more

WordPress site suddenly stopped working

The error message you’re getting tells you that your database settings aren’t working to create a connection. Did you change your wp-config.php? Check that first. Then check that the database server is running. Error: Error establishing a database connection. This either means that the username and password information in your `wp-config.php` file is incorrect or … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)