Simple Events Shortcode
-
Hi everyone,
after some searching and playing around I finally managed to set up a simple shortcode to list events:
function sc_list_events() { ob_start(); query_posts('post_type=tribe_events'); tribe_get_template_part('list/content'); $content=ob_get_clean(); wp_reset_query(); return $content; } add_shortcode('list_events', 'sc_list_events');
In combination with the templating possibilities found here http://tri.be/support/documentation/events-calendar-themers-guide/ you can customize everything as you need it.
Have fun,
Bogdan
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Simple Events Shortcode’ is closed to new replies.