Show other category posts in single.php

List of post of a category can be show using wp_query like this $paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1; $args = array( ‘post_type’ => ‘post’, //Specifying post type ‘posts_per_page’ => 10, //How many posts per page ‘cat’ =>’cat2′, //Specifying post category to show posts ‘paged’ => $paged //For pagingation (if required) ); $loop = … Read more

display multiple posts and posts content on a single URL

First you will need to create a custom page template and copy the styling from your page.php file. After that, you will use a loop below to display all posts in one page.### <?php // the query $wpb_all_query = new WP_Query(array(‘post_type’=>’post’, ‘post_status’=>’publish’, ‘posts_per_page’=>-1)); ?> <?php if ( $wpb_all_query->have_posts() ) : ?> <ul> <!– the loop … Read more

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