shortcode with multiple categories (2 posts)

  1. ozzie5
    Posted 2 years ago #

    I am using WP 3.1 and events version 2.2.2.

    I am trying to list multiple specific categories on a page using the short-code with multiple category id's, for example [events_show category="2,4,7,12"].

    This does not seem to work. The page only displays the first category it finds (in the example it would be id 2).

    Is there a solution ?


  2. danielseibert
    Posted 2 years ago #

    I found out today: Just use multiple shortcodes.
    For your example above, it would look like this:

    [events_show category="2"]

    [events_show category="4"]

    [events_show category="7"]

    [events_show category="12"]

    On my page, this results in a list sorted by date containing events of all categories.

    I hope it will work for you as well.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic