Support » Plugin: The Events Calendar » [Plugin: The Events Calendar] Template tag help please

Viewing 4 replies - 1 through 4 (of 4 total)
  • This is working pretty well so far. I just need to add the links…

    <li><h2 class="widgettitle">Recent Events</h2><ul>
    <?php $args = array( 'post_type' => 'tribe_events', 'posts_per_page' => 5 );
    $loop = new WP_Query( $args );
    while ( $loop->have_posts() ) : $loop->the_post();
    	echo '<li>';
    	the_title();
    	echo '</li>';
    endwhile; ?></ul></li>

    Got the links in. This seems to work and has title attributes…

    <li><h2 class="widgettitle">Recent Events</h2><ul>
    <?php $args = array( 'post_type' => 'tribe_events', 'posts_per_page' => 5 );
    $loop = new WP_Query( $args );
    while ( $loop->have_posts() ) : $loop->the_post(); ?>
    <li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
    <?php endwhile; ?></ul></li>

    Of course you might have to adjust the ul and li tags to fit the styling of your theme. You can also add the

    Thank you for figuring this out!

    Shane says that the Template Tags will be supported in version 2.0.2 which should be out in a week or two. They actually are not currently supported, which explains why I couldn’t get them to work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: The Events Calendar] Template tag help please’ is closed to new replies.