• Resolved wortberge

    (@wortberge)


    Hi,

    is it possible to use my custom attributes in shorttags to group my events?
    We offer courses, grouped in categories.

    The courses that are divided into individual units and these units are repeated at irregular intervals and are divided into cycles.

    So i created the cycles as an custom attribute, which i need to group in my event lists.

    +--------+------------+------------+------------+
    |........|.Cycle A....|.Cycle B....|.Cycle C....|
    +--------+------------+------------+------------+
    | Unit 1 | 2017/04/01 | 2017/07/15 | 2017/08/05 |
    +--------+------------+------------+------------+
    | Unit 2 | 2017/04/10 | 2017/09/08 | 2017/10/03 |
    +--------+------------+------------+------------+
    | Unit 3 | 2017/05/01 | 2017/10/17 | 2017/12/24 | 
    +--------+------------+------------+------------+

    THX!

    • This topic was modified 7 years, 3 months ago by wortberge.
    • This topic was modified 7 years, 3 months ago by wortberge.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    hi,

    sorry but I’m afraid that this is not possible at the moment.

    Thread Starter wortberge

    (@wortberge)

    Hi Angelo,

    can i solve it with tags instead?

    Thread Starter wortberge

    (@wortberge)

    Ok, i figured out, that tags won’t work. Do you have any recommendations for me to to get my events (units) of one category, grouped by cycles?

    Thank you in advance!

    Plugin Support angelo_nwl

    (@angelo_nwl)

    that might be possible and maybe this snippet can help you get started – https://pastebin.com/f6DVrzZS

    • This reply was modified 7 years, 3 months ago by angelo_nwl.
    TreeTrail

    (@aprilschmitt27)

    Angelo,

    I tried many things to group and sort event categories. Although it’s a bit manual, I finally thought of a workable container solution. I had already been using the awesome “WPBakery Page Builder” free plugin.

    For the purpose of grouping and ordering the subcategories, I created a new “Text Block” for each event subcategory and referenced that category ID. Then EM sorts the events by date within each blocked group. Below are the basic parts for each block:

    Event Subcategory Title & Description Text
    [events_list category=”00″]
    #_PLACEHOLDERS
    [/events_list]

    Hope this helps with this frequent question.

    ~April Schmitt

    Thread Starter wortberge

    (@wortberge)

    Hello together,

    the solution provieded by April is basic usage from your short-codes and is not matching.

    But i took your snippet and modified it to group the events by tags. With an optional argumet to choose single categories everything is working now.

    Thank you!

    Merry christmas and a happy new year!

    Sascha

    Thank you, you too ??

    Sounds like everyone is happy, so I’ll mark this as resolved.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Use Custom Attributes in Shorttag for grouping’ is closed to new replies.