home.php not loading

You say you copied the entire content of index.php into home.php but I assume you have made some changes? Because if not the pages looks identical so maybe it is loading, but just the same? Now are you having posts or pages you want to display on your front page? Because for the posts and … Read more

Load child template based on parent

Instead of putting something on the template, you can keep templates clean and add to functions.php a function that use ‘template_include’ action hook to check parent page template and return same template for children pages. add_action(‘template_include’, ‘auto_child_template’); function auto_child_template( $template=”” ) { if ( ! is_page() ) { return $template; } else { $page = … Read more

How to add posts list to a page template?

In your wp-content/themes/your-theme folder you need create your own page template… CUSTOM PAGE TEMPLATE In the same folder where you just created your new file, you should see a file named page.php. Open that file by choosing to edit it, and then copy everything you find inside of it. Then, at the very top of … Read more

WordPress editable template fields

Custom fields can accomplish what you’re trying to do. http://codex.wordpress.org/Custom_Fields You define the custom key and values in an edit page, and then you can re-use them in other edit pages. Once defined, you need to display the custom fields in your template(s). The documentation isn’t super clear, but if your key was “currently_reading”, your … Read more

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