Support » Plugin: The Events Calendar » Show all events on one page

  • Resolved designminded

    (@designminded)


    Hi, this question is for this Modern Tribe the Events Calendar plugin so I found the information on how to show all events on one page using both upcoming and previous events but that thread was closed so I couldn’t reply to this thread by @intown:

    https://theeventscalendar.com/support/forums/topic/show-all-events-on-one-page-past-upcoming/

    My question is where do I put this snippet of code in WordPress or theme? I tried to find the instruction but wasn’t clear.

    <?php $loop = new WP_Query( array( 'post_type' => 'tribe_events', 'posts_per_page' => 2, 'orderby' => 'date', 'order' => 'ASC', 'paged', 'eventDisplay' => 'past') ); ?>

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • shelbelliott

    (@shelbelliott)

    Hi @designminded,

    Thanks for using our plugin, I’m happy to help! You’ll want to add the snippet into your functions.php file. 🙂

    Let us know if you need further assistance with this!

    Best,

    Shelby 🙂

    Hi @shelbelliott!

    I’m also trying to achieve to just list my events in a single page.

    If I add this code to functions.php what should I do next?

    Br,

    Mikko

    @shelbelliott
    When I fill out the settings – I added show 20 events per page… but only a few show- then if they click show NEXT EVENTS it says no events available– but if they click back the next events show up? Wondering what to do for my client so either all events show in list form OR if they click next events … next events show up… Thank you for your help! Here is the page: http://guesthouse.org/events/

    • This reply was modified 2 years, 11 months ago by kcritz.

    Hi @kcritz,

    This sounds like it may be related to a theme or plugin conflict. I recommend going through the steps here to test for a conflict.

    Let me know what you find out & we’ll go from there!

    Best,
    Shelby 🙂

    Shelby,
    I’m sorry to ask this question here, but I can’t find where to submit a new question anywhere on this forum.
    I just need to know how to add space between the events list as shown on this page: http://fpc.idgbllc.com/news-events/
    Each item is on top of the other and it is difficult to tell where one ends and the other begins.
    Thanks for your help and again I’m sorry for using the wrong spot for posting this. Please redirect me to the correct area and I will repost if necessary.

    Don

    Hi @clearlysee,

    You can post a new topic here: https://wordpress.org/support/plugin/the-events-calendar#new-post

    Cheers,

    Shelby 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show all events on one page’ is closed to new replies.