Reply To: latest news by category
January 7, 2023 at 4:39 am
#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