WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
Query for 1 month (need help) (1 post)

  1. insanepl
    Member
    Posted 1 year ago #

    Hey I made a custom page with rankings that shows full post and I got one problem with query.

    Thats how my queries looks like (its before loop)

    <?php
    if ( is_page(mr) ) {
        query_posts('r_sortby=highest_rated&range=1&r_orderby=desc&showposts=10&w='.date('D'));
    } elseif ( is_page(mrange7) ) {
        query_posts('r_sortby=highest_rated&range=7&r_orderby=desc&showposts=10&w='.date('W'));
    }
    elseif ( is_page(mrange30) ) {
       // query_posts('r_sortby=highest_rated&r_orderby=desc&showposts=10&year=$current_year&monthnum=$current_month');
          query_posts('r_sortby=highest_rated&range=30&r_orderby=desc&showposts=10&w='.date('M'));
    } else {
     query_posts('r_sortby=highest_rated&range=1&r_orderby=desc&showposts=10&w='.date('D'));
    }
    ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser.]

    Query for all time works, query for 1 week works, but I got problem with query for 1 month.

    Could you please write me a query for 1 month bassed on this? and check if my 1 week query is rly correct?

    Theres the website

    http://szpileczkiblog.pl/mr/

    Thank You

    http://wordpress.org/extend/plugins/wp-postratings/

    [ Please do not bump, that's not permitted here. ]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.