• Resolved raws4581

    (@raws4581)


    I am working on a website the calendar works fine. But on my home page template under a section called upcoming events I want to call like a list date, title, event name.

    I was trying this but it wont work. Grab code from:
    ecp-page-template.php

    <?php
    if ( !defined(‘ABSPATH’) ) { die(‘-1’); }
    ?>
    <?php tribe_events_before_html(); ?>
    <h2 class=”tribe-events-cal-title”><?php tribe_events_title(); ?></h2>
    <?php include(tribe_get_current_template()); ?>
    <?php tribe_events_after_html(); ?>

    <?php if ( function_exists(‘has_post_thumbnail’) && has_post_thumbnail() ) { ?>
    <div class=”list-thumbnail”>
    <?php the_post_thumbnail(‘thumbnail’); ?>
    </div>
    <?php } ?>

    https://www.ads-software.com/extend/plugins/the-events-calendar/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Code for front page’ is closed to new replies.