WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. seiltanzer
    Member
    Posted 2 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>
    
    			<?php
    
    			$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')); ?>
    					</div>
    					<?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() ?>
    				</div>
    				</div>
    
    			<?php
    			endwhile;
    			wp_reset_query();
    			?>
    			<?php
    			else :
    			?>
    
    			<?php
    			endif;
    			?>
    
    		</section>

    https://wordpress.org/plugins/the-events-calendar/

  2. leahkoerper
    Modern Tribe Support Rep
    Plugin Author

    Posted 2 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!

    ~Leah

Reply

You must log in to post.

About this Plugin

About this Topic