Forums Forums Search & Filter Pro Get date range from current archive.php url

Viewing 3 posts - 1 through 3 (of 3 total)
  • Trevor
    #70519

    Do you know if you have the name correct? You could use PHP to dump the $sf_current_query array, like this:

    echo '<pre>';
    print_r($sf_current_query);
    echo '</pre>';
    Anonymous
    #70563

    Trevor,

    Between this and another support post that I located, this was indeed the solution:

    $sarr = $sf_current_query->get_array();
    $fromDate = $sarr[_sf_post_date][active_terms][0][value] ;
    $toDate = $sarr[_sf_post_date][active_terms][1][value];

    Thanks!

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