Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    hmm, do you want one category per events list/pagination ? if yes, am afraid that this isn’t possible at the moment.

    Thread Starter ulises2010

    (@ulises2010)

    I don’t understand this ‘one category per events list/pagination’ (sorry my poor english)

    I want order the event list by category, not by date, or at least, mark some especific events to be showed ever the fist.

    Hiya,

    The best option would be to use the event_list shortcode with the category parameter like so;

    [events_list category="1"]
    [events_list category="2"]
    [events_list category="3"]
    [events_list category="4"]

    Simply replace the numbers above with the IDs of your categories, and place into a new page.

    Thanks

    Thread Starter ulises2010

    (@ulises2010)

    Oh, It’s perfect and it’s works… but I have a little problem…

    I need it for the home, I have a widget with this code:

    [events_list category=”15,16,17,33″ limit=”2″]

    and I need only showed 2 events, but, if exist, show from one category, if not, from other, and etc…. any idea?

    Thanks

    Plugin Support angelo_nwl

    (@angelo_nwl)

    maybe you can try to use conditional placeholder {has_category_X}content{/has_category_X} – https://wp-events-plugin.com/documentation/conditional-placeholders/

    eg.

    [events_list category="15,16,17,33" limit="2"]
    
    {has_category_X} #_EVENTLINK {/has_category_X}
    
    [/events_list]

    Thread Starter ulises2010

    (@ulises2010)

    Oh, Thanks… thats looks exactly what I looking for.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    thanks for the update.

    Thread Starter ulises2010

    (@ulises2010)

    Hello again,

    I have a problem with this code now (is the first time I probe it)

    I use a text widget to show my events in the home.

    If I use:

    [events_list category=”15,16,17,33″ limit=”2″]

    It’s ok, but if I use

    [events_list category=”15,16,17,33″ limit=”2″] [/events_list]

    nothing is showed in the home

    And if I use as I want

    [events_list category=”15,16,17,33″ limit=”2″]

    {has_category_15}[events_list category=”15″ limit=”2″] {/has_category_15}

    [/events_list]

    Then, the widget show in the home ‘[events_list category=”15″ limit=”2″]’ in text mode….

    When you add a closing tag to the shortcode, you need to also use placeholder tags for formatting. That means your first example needs to something like this:

    [events_list category="15,16,17,33" limit="2"]
    #_EVENTLINK
    [/events_list]

    Your second example needs to be just:

    [events_list category="15" limit="2"]

    Thread Starter ulises2010

    (@ulises2010)

    Sorry, but what I have to do?

    I only want to show an event list, the placeholder tags are in the Options page of events manager…

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fix events in events list…’ is closed to new replies.