Support » Plugin: The Events Calendar » Post Type of the events

  • Resolved seiltanzer


    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 :

Viewing 1 replies (of 1 total)
  • Plugin Contributor leahkoerper


    Modern Tribe Support Rep

    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!


Viewing 1 replies (of 1 total)
  • The topic ‘Post Type of the events’ is closed to new replies.