Okay
  Public Ticket #2688675
Display events shortcode restrict amount displayed
Closed

Comments

  •  4
    DesignBurst started the conversation

    Hello I would like to display the next events on the homepage in the top part of the page. I only want to display 3 entries but the events shortcode displays all events. Please advise on how I can adapt this to show only 3 upcoming events. 

  • [deleted] replied

    Hello Marianna, 

    These are the available shortcodes for events in Amelia:

    1. [ameliaevents] if you want to show a list of all your events,
    2. [ameliaevents tag=’name’] if you want to show just the events that belong to the same tag defined during the creation of events, where “name” will be replaced with the tag name,
    3. [ameliaevents event=1] if you want to show only the event with ID 1 without its recurring events,
    4. [ameliaevents event=1 recurring=1] if you want to show the event with ID 1 with all his recurring events.

    So depending on the shortcode you add to the page you will have the list of the events - all events , events with same tag, or one event per shortcode. Unfortunately, there isn't a possibility of setting 3 following events to be shown with a shortcode. Please check if there is such feature request here , and vote for it.

    You can set the number of events shown on the page before pagination, if that could help, this is achieved if you choose 3 for the option Default items per page: in Amelia -> Settings -> General. 

    If you have any other questions or concerns feel free to open a new ticket and we will gladly help out.