angelo_nwl & Robswaimea,
Thank you so much for your prompt replies. Please allow me to try to better explain with 2 examples (with line spaces condensed):
1.
METHOD: EM Shortcodes
PROBLEM: Data & criteria are correct, but must group & order by EM Categories (preferably by term_group,term_order, but alpha category name would work too)
(great also would be child under parent categories, but if I can limit the category id’s, I can keep all “Hiking” in one page section & all “Cycling” in another, etc)
PAGE:
[events_list category=”43,44,45,46,48,49,50″ scope=future orderby=”event_start_date” order=”ASC”]
<p>
#_CATEGORYNAME
#_EVENTDATES at #_EVENTTIMES: “#_EVENTNAME”
</p>
[/events_list]
RESULTS:
Saturday Short Hikes
10/21/2017 at 10:00 am – 12:30 pm: “Middle Run Valley Natural Area”
Saturday Medium Hikes
10/21/2017 at 9:00 am – 1:00 pm: “White Clay Creek State Park”
Sunday Hikes
10/22/2017 at 1:00 pm – 4:00 pm: “New Castle, DE”
Wednesday Evening Hikes
10/25/2017 at 6:30 pm: “Chesapeake City, MD”
Wednesday Midweek Hikes
10/25/2017 at 9:00 am – 1:30 pm: “Cheslen Preserve, Chester County, PA”
Wednesday Miler Hikes
10/25/2017 at 9:00 am: “WCCSP, Nine Foot Road parking area”
Saturday Medium Hikes
10/28/2017 at 9:00 am – 1:00 pm: “Elk Neck State Park”
Saturday Medium Hikes
11/11/2017 at 9:00 am – 1:00 pm: “First State National Historical Park”
Saturday Medium Hikes
11/18/2017 at 9:00 am – 1:00 pm: “White Clay Creek State Park”
…like all “Saturday Medium Hikes” need to group together, with dates & event details under
———————————————————————————
2.
METHOD: Angelo’s 2013 Create Shortcode & EM Shortcodes
PROBLEM: It’s trying to group, but no events, & not solving above problems either
PHP:
<?php
function em_events_list_by_category(){
$EM_Categories = EM_Categories::get($args);
foreach( $EM_Categories as $EM_Category ){
echo “<h5>”.$EM_Category->name.”</h5>”;
echo do_shortcode(‘[events_list category=”‘.$EM_Category->term_id.'”]’);
}
}
add_shortcode(‘category_events_list_group’, ’em_events_list_by_category’);
PAGE:
[category_events_list_group=”43,44,45,46,48,49,50″ scope=future orderby=”event_start_date” order=”ASC”]
<p>
#_CATEGORYNAME
#_EVENTDATES at #_EVENTTIMES: “#_EVENTNAME”
</p>
[/category_events_list_group]
RESULTS:
WTC Calendar Notices
No Events
WTC Volunteer Efforts
Event Event Details
[location_search_form ajax=1]
WTC
No Events
WTC Club Meetings
No Events
WTC Social Gatherings
No Events
HIKING
No Events
Multiple Day Backpacking
No Events
New Member Hikes
No Events
Saturday Long Hikes
No Events
Saturday Medium Hikes
Event Event Details
[location_search_form ajax=1]
Saturday Short Hikes
Event Event Details
[location_search_form ajax=1]
Sunday Hikes
Event Event Details
[location_search_form ajax=1]
Impromptu Hikes
No Events
Wednesday Midweek Hikes
Event Event Details
[location_search_form ajax=1]
Wednesday Miler Hikes
Event Event Details
[location_search_form ajax=1]
Wednesday Evening Hikes
Event Event Details
[location_search_form ajax=1]
Thursday Hikes
No Events
Multiple Day Hiking
No Events
Holiday Hikes
No Events
Annual Brandywine End To End Hike (E2E)
No Events
Annual Hike Across Delaware (HAD)
Event Event Details
[location_search_form ajax=1]
Work Hikes
Event Event Details
[location_search_form ajax=1]
PADDLING
No Events
Whitewater Paddling
No Events
Recreational Paddling
No Events
Pool Session Paddling
No Events
Training Paddling
No Events
Open House Paddling
No Events
Safety Session Paddling
No Events
CYCLING
No Events
Tuesday Cycling
Event Event Details
[location_search_form ajax=1]
Friday Cycling
No Events
Other Cycling
No Events
SKIING
Event Event Details
[location_search_form ajax=1]
Cross-Country Skiing
Event Event Details
[location_search_form ajax=1]
———————————————————————————
Any suggestions would be greatly appreciated.
~April