WordPress Website Templates

Find Professional WordPress themes Easy and Simple to Setup

inner banner

Reply To: latest news by category

#39518
Grace Support
Keymaster

Hi,

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’ );

Regards
Grace Themes