Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #351830

    Hi,

    by default the Enfold Combo Widget show the most popular posts. Is it possible to show the latest by default?

    Thanks

    Alex

    #352091

    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

    • This reply was modified 10 years, 1 month ago by Elliott.
    #357207

    thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Question re Enfold Combo Widget’ is closed to new replies.