Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5090

    Hi, in the Brightbox combo widget (sidebar): how can i display the Recent posts instead of the Popular posts by default?

    Thanks!

    #48857

    Hey,

    in brightboxframeworkphpclass-framework-widgets.php you’ll find following code:

    echo '<div class="tab first_tab"><span>'.__('Popular', 'avia_framework').'</span></div>';
    echo "<div class='tab_content'>";
    avia_get_post_list('cat=&orderby=comment_count&posts_per_page='.$posts);
    echo "</div>";

    echo '<div class="tab"><span>'.__('Recent', 'avia_framework').'</span></div>';
    echo "<div class='tab_content'>";
    avia_get_post_list('showposts='. $posts .'&orderby=post_date&order=desc');
    echo "</div>";

    Replace it with:

    echo '<div class="tab"><span>'.__('Recent', 'avia_framework').'</span></div>';
    echo "<div class='tab_content'>";
    avia_get_post_list('showposts='. $posts .'&orderby=post_date&order=desc');
    echo "</div>";

    echo '<div class="tab first_tab"><span>'.__('Popular', 'avia_framework').'</span></div>';
    echo "<div class='tab_content'>";
    avia_get_post_list('cat=&orderby=comment_count&posts_per_page='.$posts);
    echo "</div>";

    #48858

    Thanks again dude! Support rocks here

    #48859

    Glad Dude could help you =]

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Brightbox combo widget’ is closed to new replies.