The Events Calendar
[resolved] Post Type of the events (2 posts)

  1. seiltanzer
    Posted 10 months ago #

    Hello, I use a template that display the last post in the homepage. I would like to display my last event instead. What post_type should I precise ?

    Here is the code of the homepage :

    <section class="featured block grid3">
    			<h2><?php echo of_get_option('featured_header_text') ?></h2>
    			$args=array('post_type'=> 'post', 'post_status'=> 'publish','orderby'=> 'menu_order','posts_per_page'=>3,'showposts'=>3,'caller_get_posts'=>1); query_posts($args);
    			if ( have_posts() ) :while (have_posts()): the_post(); 
    				<div class="col">
    					<?php if(has_post_thumbnail()): ?>
    					<div class="post-thumb-wrap">
    						<?php the_post_thumbnail('post-thumb', array('class'=>'post-thumb')); ?>
    					<?php else: ?><?php endif; ?>
    				<h3 class="post-title"><a href="<?php the_permalink() ?>" ><?php echo the_title() ?></a></h3>
    				<div class="post-content">
    					<?php the_excerpt() ?>
    			else :


  2. leahkoerper
    Modern Tribe Support Rep
    Plugin Author

    Posted 10 months ago #

    Hi seiltanzer,

    As outlined in our forum guidelines, we aren’t able to help with these kinds of customizations. But we do have some handy resources that might be helpful for you:

    Themer's Guide - provides an overview of how to customize the plugin's frontend appearance.
    Tutorials - useful tips and tricks for changing how the plugin looks and behaves.
    Technical Docs - provides an overview of the classes and functions in each plugin

    Good luck, and thanks for using The Events Calendar!



You must log in to post.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic