crosnz.blogg.se

Tribe calendar add categories and tags to photo view
Tribe calendar add categories and tags to photo view










tribe calendar add categories and tags to photo view
  1. #Tribe calendar add categories and tags to photo view how to#
  2. #Tribe calendar add categories and tags to photo view code#

$single->display_attendees_widget($single_event_obj) Then call the widgets: // attendees widget $single_event_main = $single->get_event_mec(get_the_ID())

#Tribe calendar add categories and tags to photo view code#

You should first add the following code in the PHP file “single-mec-events.php” you placed in the theme’s root directory. If you need to load the MEC’s widgets, please proceed as follows: Get_post_meta( get_the_ID(), ‘mec_cost’, true ) Get_post_meta( get_the_ID(), ‘mec_more_info’, true) Get_post_meta( get_the_ID(), ‘mec_read_more’, true) Get_post_meta( get_the_ID(), ‘mec_comment’, true ) Get_post_meta( get_the_ID(), ‘mec_end_time_ampm’, true) Get_post_meta( get_the_ID(), ‘mec_end_time_minutes’, true) Get_post_meta( get_the_ID(), ‘mec_end_time_hour’, true) Get_post_meta( get_the_ID(), ‘mec_end_date’, true ) Get_post_meta( get_the_ID(), ‘mec_start_time_ampm’, true) Get_post_meta( get_the_ID(), ‘mec_start_time_minutes’, true) Get_post_meta( get_the_ID(), ‘mec_start_time_hour’, true) Get_post_meta( get_the_ID(), ‘mec_start_date’, true ) Get_post_meta( get_the_ID(), ‘mec_color’, true ) Get_terms(array(‘taxonomy’ => ‘mec_category’,’hide_empty’ => false,)) Get_terms( array(‘taxonomy’ => ‘mec_label’,’hide_empty’ => false,)) The_post_thumbnail() / the_post_thumbnail(‘full’) Now, you can place all your desired content between those 2 functions.īefore getting any necessary fields for MEC, it is worth mentioning that MEC plugin supports the main functions like getting title, content, category, tags, featured image, however, loading other items needs to be done using the defined functions in # Then, in coding, call the main WordPress functions of get_header and get_footer.

tribe calendar add categories and tags to photo view

#Tribe calendar add categories and tags to photo view how to#

Note: If you use the lite version of MEC insert -lite after “modern-events-calendar”.Let’s learn how to build an exclusive Single Event Page for our events.įirst, create a PHP file in the root folder of your theme named single-mec-events.php. MEC has a number of template files in /path/to/modern-events-calendar/templates/, you can simply override them in your theme or child-theme.įor example place them on the /path/to/theme/single-mec-events.php or /path/to/child-theme/single-mec-events.php. With the Overriding Modern Events Calendar Single Event Page feature, as a developer, you can easily adjust themes and customize your website in best possible way. MEC is created by developers for developers! And it’s highly developer-friendly so you can simply override MEC templates in your theme and make it compatible with your theme style or use MEC filters/actions to customize it.












Tribe calendar add categories and tags to photo view