Support Forums

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

Matt

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Matt in reply to:
    Wrong License
    #233070
    This reply has been marked as private.
    Matt in reply to:
    No Results – DateTime Range
    #207304

    Yes. Thank you

    Matt in reply to:
    No Results – DateTime Range
    #207161

    Yes, and the element was removed, but it had no effect on the query. It still processed it as if the element was in the query.

    So I had to work around it by unsetting the element that was set in the $_GET variable. It works for now, but I was sure it would have been straight forward using the sf_edit_query_args function.

    Matt in reply to:
    No Results – DateTime Range
    #207000

    I’ve made some progress with this.
    I can alter the query by adjusting the meta_query as above but I need to remove a fields value from $sf_current_query. When I unset it the query is still run like it’s there.
    I removed it like this
    unset($sf_current_query['_sfm__audiotheme_gig_datetime']);

    Matt in reply to:
    No Results – DateTime Range
    #206995

    Would it be possible to intercept the query and alter the query using sf_edit_query_args.

    I would do something like this in that filter

                $start = '2016-01-01 00:00:00';
                $end = '2016-12-31 23:59:59';
    
                $query_args['meta_key'] = '_audiotheme_gig_datetime';
                $query_args['meta_query'] = array(
                        'key'     => '_audiotheme_gig_datetime',
                        'value'   => array( $start, $end ),
                        'compare' => 'BETWEEN',
                );

    Ideally I just need to alter the query prior with my own arguments around a specific meta field.

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