WordPress archives in header -necessary?

See this WordPress support page for an explanation of what the first line does. The second line you can remove and it will get rid of those archive entries from the header output HTML. For the SEO impact, search engines should be just fine as long as you have a site map for your posts.

Body tag in header AND template/footer?

Structure your theme so you start the <body> in the header and you close the </body> in the footer (same thing for the <html> tag): header.php <html> …header content <body> <!— body is started in the header, used on every page –> index.php, page.php, single.php, home.php – etc …content footer.php …footer content </body> <!– body … Read more

How to select a specific page

From WordPress Codex Get Posts. <?php $the_slug = ‘my_slug’; $args = array( ‘name’ => $the_slug, ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘numberposts’ => 1 ); $my_posts = get_posts($args); if( $my_posts ) : echo ‘ID on the first post found ‘ . $my_posts[0]->ID; endif; ?> That way you can get a post or page by its … Read more

how to add H1 in title site?

Simple mistake or a typo: if ( is_front_page() && is_home() ) : It should be: if ( is_front_page() || is_home() ) : You want to put h1 in both: static front page and blog index. Your condition with && won’t be true, if you use static page as front page.

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