Show only the past 5 events on home page

WordPress Event Management, Calendars & Registration Forums Request A Feature Show only the past 5 events on home page

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 11 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4747

    Hi, I would add a small section on a home page and show only say, the past 5 events. They could click on another link (that I made) to take them to the full events page where all the events would be, but I would to show only the most recent events up to a certain amount on the home page. Is this possible?

    Tyler Dille
    #5268

    You can do this by editing the appropriate theme template and using one of eo_get_events(), WP_Query or get_posts(). Documentation for querying events can be found here: http://wp-event-organiser.com/documentation/function/eo_get_events/

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.