Recreate events results, but in a custom WP Loop.

Home Forums Calendar Products Events Calendar PRO Recreate events results, but in a custom WP Loop.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28856
    bravenewmedia
    Participant

    What is the syntax to create the same functionality as the events section, only in a custom loop outside of the “events” files? I would simply like to pull 3 or 4 upcoming events, with the nearest show displayed first. Here’s what I have, and thank you in advance:
    $args = array(
    ‘post_type’ => array(‘tribe_events’),
    ‘posts_per_page’ => 3,
    );
    $newsevents_query = new WP_Query($args);
    while($newsevents_query->have_posts()) : $newsevents_query->the_post(); ?>

    The Name of the Show Here

    endwhile;
    wp_reset_postdata();

    #28869
    Jonah
    Participant
    #28922
    Roberto
    Participant

    Hi i’ve got a similar problem. I’ve try these inside my index.php for display them but don’t show any event. No error given, but events are normally displayed in the web site http://www.vittoriarisi.it/events

    #28985
    Jonah
    Participant

    Hi Roberto,

    What code specifically are you working with? Please provide examples of all your code otherwise it’s hard for me to know what you are trying to do.

    – Jonah

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Recreate events results, but in a custom WP Loop.’ is closed to new replies.