Black Friday & Cyber Monday Deal: Flat 25% OFF on Lifetime & All Themes Package. Use Coupon Code BFCM23 Buy Now

WordPress Website Templates

Find Professional WordPress themes Easy and Simple to Setup

inner banner

Reply To: latest news by category

Grace Support


It needed to make the changes in the custom-functions.php file

Add this at line no. 883

‘catname’ => ”,

Replace below code

query_posts( array( ‘posts_per_page’=>$showposts, ‘post__not_in’ => get_option(‘sticky_posts’) ) );

With this:

$args = array( ‘category_name’ => $catname, ‘posts_per_page’ => $showposts, ‘post__not_in’ => get_option(‘sticky_posts’), ‘orderby’ => ‘date’, ‘order’ => ‘desc’ );

Grace Themes