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.

anthos

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • anthos in reply to:
    Display search terms other than category do not work
    #39703

    I finally found this solution:

    $sarr = $sf_current_query->get_array();

    $author = $sarr[authors][active_terms][0][name] ;
    $fromDate = $sarr[_sf_post_date][active_terms][0][value] ;
    $toDate = $sarr[_sf_post_date][active_terms][1][value];

    I hope it keeps on working always!

    anthos in reply to:
    Display search terms other than category do not work
    #39701

    Hi!
    Sorry for my late reply but I had to complete another project..
    If I do a var_dump I get the following:
    array(2) { [“authors”]=> array(5) { [“name”]=> string(7) “Authors” [“singular_name”]=> string(6) “Author” [“all_items_label”]=> string(11) “All Authors” [“type”]=> string(9) “post_type” [“active_terms”]=> array(1) { [0]=> array(3) { [“id”]=> int(39) [“name”]=> string(7) “Agenzie” [“value”]=> string(7) “agenzie” } } } [“_sf_post_date”]=> array(1) { [“active_terms”]=> array(2) { [0]=> array(1) { [“value”]=> string(8) “01032016” } [1]=> array(1) { [“value”]=> string(8) “16032016” } } } }

    In my form I have Authors (in this example value for that is “Agenzie”) and Post Date range fields.
    I am not expert in PHP…can you help me to get the authors and post date range?
    As $sf_current_query->get_field_string(“authors”) does not work.

    Thanks

    anthos in reply to:
    Date picker not automatically translated
    #38609

    I finally added this to my functions.php (my localization is for italian):

    add_filter( ‘wp_footer’ , ‘rc_localize_datepicker’ );
    /**
    * Localize datepicker fields
    *
    * @access public
    * @since 1.0
    * @return void
    */
    function rc_localize_datepicker() {
    wp_enqueue_script(‘jquery-ui-i18n-it’, ‘http://jquery-ui.googlecode.com/svn/tags/latest/ui/i18n/jquery.ui.datepicker-it.js’, array(‘jquery-ui-datepicker’));
    }

    And it works!

    anthos in reply to:
    Date picker not automatically translated
    #38565

    Thanks for your fast reply.
    Yes, it is set to italian!
    I am trying to add code to my functions.php like I read on this post:
    https://support.searchandfilter.com/forums/topic/poste-date-where-translate/#post-31457

    But it does not work, even if it loads the jquery script ( checked on the source code).
    Should the datepicker field have some attribute that is missing?
    I read in jquery $.datepicker.regional[‘it’] …

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