get the ID of an EM Category
-
I want a list of all events with a certain category. But I only have the name of the category and not the ID.
$ categories = get_the_category (); if ($ categories) { foreach ($ categories as $ category) {} } $ Category name = $ category-> name;
How can I pass the shortcode an ID of the category?
do_shortcode echo ("<ul> [events_list category = ID] <li> <a href="#_EVENTURL" title="#_EVENTNAME"> #_EVENTDATES - #_EVENTNAME </ li> [/ events_list ] </ ul> ');
Thx
Ingo
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get the ID of an EM Category’ is closed to new replies.