• Hi There !

    I would like to list certain events according to their ID.

    According to your documentation

    The shortcode automatically inherits attributes supported by eo_get_events()

    and

    Because eo_get_events() inherits arguments from get_posts() – you can use the arguments for get_posts() (see codex) in both eo_get_events() and this shortcode.

    As I understood eo_get_events() do not have a parameter to select by IDs, but get_posts() yes.

    I thus tried shortcode six shortcodes, using diferent parameters (ID, post_ID, post__in) and values (“300”, “300, 301″ both being event ID)

    [eo_events event_category=”myEventCategory” ID=”300″]%event_title%[/eo_events]
    [eo_events event_category=”myEventCategory” ID=”300, 301″]%event_title%[/eo_events]

    [eo_events event_category=”myEventCategory” post_ID=”300″]%event_title%[/eo_events]
    [eo_events event_category=”myEventCategory” post_ID=”300, 301″]%event_title%[/eo_events]

    [eo_events event_category=”myEventCategory” post__in=”300″]%event_title%[/eo_events]
    [eo_events event_category=”myEventCategory” post__in=”300″]%event_title%[/eo_events]

    The four first shortcode display the list of all my events, not filtered by IDs, while the two last do not display anything ?

    I don’t understand what am I doing wrong ? I can certify that 300 and 301 are events IDs

    I would greatly appreciate your guidance !
    Regards

  • The topic ‘Shortcode list event : select by event ID’ is closed to new replies.