• Hello,
    i want to filter some posts at my blog :

    – most readed posts during 24 hours
    – most readed posts during last week

    i am using a theme, and i have tried some codes but idk if they works, here are the code :

    // most readed during 24 hours
    function tj_tabs_popular( $posts = 5, $size = 35 ) {
    $popular = new WP_Query(“caller_get_posts=1&TIMEDIFF(NOW(), post_date) < 24&orderby=comment_count&posts_per_page=’.$posts”);
    while ($popular->have_posts()) : $popular->the_post();

    // weekly most readed.
    function tj_tabs_weeklypopular( $posts = 5, $size = 35 ) {
    $popular = new WP_Query(‘caller_get_posts=1&range=weekly&orderby=comment_count&posts_per_page=’.$posts);
    while ($popular->have_posts()) : $popular->the_post();

    PLASE HELP

The topic ‘PLEASE HELEP !!!’ is closed to new replies.