I’ve read through other forum similar questions, but can’t quite figure this one out. Is it possible to replace one of the tabs in the combo widget to display a specific post category instead? I do want to keep the recent and most read ones.
Hey wacky32!
Thank you for using the theme.
You can edit framework > php > class-framework-widgets.php, find this code on line 939:
echo '<div class="tab widget_tab_comments"><span>'.__('Comments', 'avia_framework').'</span></div>';
echo "<div class='tab_content'>";
avia_get_comment_list( array('number' => $posts, 'status' => 'approve', 'order' => 'DESC') );
echo "</div>";
Replace it with something like this
echo '<div class="tab widget_tab_comments"><span>'.__('Category Name', 'avia_framework').'</span></div>';
echo "<div class='tab_content'>";
avia_get_post_list('showposts='. $posts .'&orderby=post_date&order=desc&cat=15');
echo "</div>";
We change the avia_get_comment_list function with the avia_get_post_list then we added the cat parameter and set it to category id 15. You change the category if you want.
Best regards,
Ismael