Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Weborithm

    (@weborithm)

    As of now there isn’t, but it’s a good feature request and we’ll consider it for future releases.

    Thread Starter Alberto Garcia

    (@albertokatiuskas)

    Thanks, I think it would be a good idea.

    Anyway I’ve done it in this way with WP_Query and it works fine:

    $args = array(
      'post_type' => 'competitor',
      'groups' => 'group-name',
      'meta_key' => 'points',
      'orderby' => 'meta_value',
      'date_query' => array(
        array(
          'year' => date('Y'),
          'month' => date('m')-1,
        ),
      ),
    );

    Maybe someone will find it useful ??

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display stats by month or week’ is closed to new replies.