Help requested with get_posts to include additional fields

Home Forums Calendar Products Events Calendar PRO Help requested with get_posts to include additional fields

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1508325
    vbems
    Participant

    I am trying to get a list of events based on slug-values set in Additional Fields… and it isn’t working. Help please.

    $args = array(
    ‘start_date’ => date( ‘Y-m-d H:i:s’ ),
    ‘posts_per_page’ => -1,
    ‘post_type’ => ‘tribe_events’,
    ‘meta_query’ => array(
    array(
    ‘meta_key’ => ‘vbems-licensure-class-name-id’,
    ‘meta_compare’ => ‘=’,
    ‘meta_value’ => $licensure_slug,
    ‘type’ => ‘CHAR’,
    ) )
    );

    //$events = tribe_get_events( $args );

    $events = get_posts ($args);

    #1510073
    juanfra
    Keymaster

    Hi,

    Thank you for reaching out to us! I hope you’re doing well.

    After reviewing your request this essentially looks like a custom development task and so is outside of our stated scope of support.

    With that being said, we’d love to help point you in the right direction. As a first thin, I’d recommend you to read the WordPress documentation article for the queries. If you debug the value in $events, what do you get? Why are you using that start_date as a parameter?

    Best,

    Juan.

    #1527357
    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 ‘Help requested with get_posts to include additional fields’ is closed to new replies.