Hi,
by default the Enfold Combo Widget show the most popular posts. Is it possible to show the latest by default?
Thanks
Alex
Hi Cevik_Kuersad!
Open up /enfold/framework/php/class-framework-widgets.php and find lines 933 – 941.
echo '<div class="tab first_tab active_tab widget_tab_popular"><span>'.__('Popular', 'avia_framework').'</span></div>';
echo "<div class='tab_content active_tab_content'>";
avia_get_post_list('cat=&orderby=comment_count&posts_per_page='.$posts);
echo "</div>";
echo '<div class="tab widget_tab_recent"><span>'.__('Recent', 'avia_framework').'</span></div>';
echo "<div class='tab_content'>";
avia_get_post_list('showposts='. $posts .'&orderby=post_date&order=desc');
echo "</div>";
Change it to this.
echo '<div class="tab first_tab widget_tab_popular"><span>'.__('Popular', 'avia_framework').'</span></div>';
echo "<div class='tab_content active_tab_content'>";
avia_get_post_list('cat=&orderby=comment_count&posts_per_page='.$posts);
echo "</div>";
echo '<div class="tab active_tab widget_tab_recent"><span>'.__('Recent', 'avia_framework').'</span></div>';
echo "<div class='tab_content'>";
avia_get_post_list('showposts='. $posts .'&orderby=post_date&order=desc');
echo "</div>";
That will set the middle tab, “Recent”, to be open by default.
Cheers!
Elliott
thanks!