Why does my category page display “posted on…” when all I want it to do is display categories?

Open the archive.php file of the Blank theme and delete this code from the top. <?php /* If this is a category archive */ if (is_category()) { ?> <h2>Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2> <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> <h2>Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2> … Read more

How do I create a template page to show 3 blog posts?

before start your posts loop in a custom page template you need to get posts from database by using wp_query() or get_posts() do some thing like this. $args = array( ‘posts_per_page’ => 3 ); $my_query = new WP_Query($args); // now start your loop if ( $my_query->have_posts() ) { while ( $my_query->have_posts() ) { $my_query->the_post(); // … Read more

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