Additional fields in Custom WIdget

Home Forums Calendar Products Events Calendar PRO Additional fields in Custom WIdget

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1353754
    Todd
    Participant

    Can you help me use additional fields in creating a widget? I have this code to limit to current day and 5 posts…

    $limit_current_date_start = date("Y-m-d 00:01");
    $limit_current_date_end = date("Y-m-d 23:59");    
    $events = tribe_get_events( array(
        'posts_per_page' => 5,
        'start_date'     => $limit_current_date_start,
        'end_date'       => $limit_current_date_end
    ) );

    But I can’t figure out how to also use a field added from the “Additional Fields” screen to sort. I’ve tried the field name and custom_field[3] but can’t get it to work.
    Also, the field I want to use is a checkbox, can I have something like “price => ‘$20 and Under’ || ‘$50 and Under'”
    Thanks!

    #1354323
    Cliff
    Member

    Hi, Todd.

    Per our Scope of Support / Terms, we wouldn’t be able to help you create a new widget, but I can try to point you in the right direction.

    I’d suggest using tribe_get_custom_fields() to get you started.

    Please let me know how this goes for you.

    #1364695
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Additional fields in Custom WIdget’ is closed to new replies.