Events Displayed on homepage with theme – home.php
-
Hi
Currently use the Events Manager (EM) to display events on my homepage using the theme’s home.php using the following code:<?php #Template Name: Home Page Template get_header(); ?> <!-- EVENTS - START --> <div class="events col12"> <?php #DISPLAY EVENTS if(class_exists('EM_Events')) { echo EM_Events::output(array('scope' => 'all', 'limit' => 10, 'orderby' => 'event_start_date', 'order' => 'DESC', 'pagination' => 1)); } ?> </div> <!-- EVENTS - END --> </div> <!-- PAGE WRAPPER - END --> <?php get_footer(); ?>
Would like to change over to the 4.1.2 version of The Events Calendar (TEC) for event management and display on homepage and need to amend the above code. Have tried various coding but have been unsuccessful for TEC functionality.
Could anyone assist with the translation code? Regards and thanks in advance for your assistance.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Events Displayed on homepage with theme – home.php’ is closed to new replies.