Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Trevor Moderator
    #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>';
    mhair
    #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)

The topic ‘Get date range from current archive.php url’ is closed to new replies.