Support Forums

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

Juan Gonzalez

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Juan Gonzalez in reply to:
    Change filter value before getting the posts
    #275760

    Hi Ross, thanks for the response, it’s a shame is not currently possible. I’ll look forward to it.

    Juan Gonzalez in reply to:
    Change filter value before getting the posts
    #275427

    Hi Trevor, thanks for the response. I tried using the hooks that you mention but it seems the search filter values are not passed in that query, this is what the var_dump of the query looks like

    
    array (size=10)
      'paged' => int 1
      'search_filter_id' => int 156
      'search_filter_override' => boolean false
      'posts_per_page' => int 5
      'post_status' => 
        array (size=1)
          0 => string 'publish' (length=7)
      'meta_query' => 
        array (size=3)
          0 => 
            array (size=4)
              'key' => string 'end_date' (length=8)
              'value' => string '20210205' (length=8)
              'type' => string 'DATE' (length=4)
              'compare' => string '>=' (length=2)
          1 => 
            array (size=4)
              'key' => string 'status' (length=6)
              'value' => string 'closed' (length=6)
              'type' => string 'CHAR' (length=4)
              'compare' => string '!=' (length=2)
          2 => 
            array (size=4)
              'key' => string 'status' (length=6)
              'value' => string 'cancelled' (length=9)
              'type' => string 'CHAR' (length=4)
              'compare' => string '!=' (length=2)
      'post_type' => string 'property' (length=8)
      'is_search' => boolean true
      'orderby' => 
        array (size=1)
          'date' => string 'DESC' (length=4)
      'lang' => string 'en' (length=2)
    

    so the values for the price and other filters are not being passed in that array.

    Juan Gonzalez in reply to:
    Change filter value before getting the posts
    #275085
    This reply has been marked as private.
Viewing 3 posts - 1 through 3 (of 3 total)