My header not showing up [closed]

Simply having a header.php in your theme’s folder will not output your header to the browser. You have to call the header too. To call the header.php file, you should use get_header(); at the top of almost every template (Almost!) such as page.php, single.php, archive.php and so on. Do the same for footer.php to get … Read more

Safe to start a php session on get_header action?

There’s nothing that requires that get_header run before output starts, you could put it in the middle of a template file after other content and still have a perfectly valid theme. template_redirect is the last action where it is guaranteed that no output has started yet.

Adding Meta Tags to a Post using its Tags, Excerpt and content

I would keep out of your header.php & either add the following to your functions.php or wrap up as a plugin: add_action( ‘wp_head’, ‘wpse_71766_seo’ ); /** * Add meta description & keywords for single posts. */ function wpse_71766_seo() { if ( is_single() && $post_id = get_queried_object_id() ) { if ( ! $description = get_post_field( ‘post_excerpt’, … Read more

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