How to display the place on my own home page ?

Home Forums Welcome! Pre-Sales Questions How to display the place on my own home page ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #987780
    Jeff
    Guest

    Hello,

    I have my own home page where I display 3 news and also 3 events.
    To show my 3 events I use the following code :

    			<?php query_posts(array( 'post_type' => 'tribe_events','showposts' => 3 ));  ?>
    			<?php while (have_posts()) : the_post(); ?>
    			<article class="calendar-accueil">
    				<header>
    					<p><?php the_date(); ?></p>
    				</header>
    				<section>
    					<h2><?php the_title(); ?></h2>
    					<ul>
    						<li>Place</li>
    						<li>Détail</li>
    					</ul>
    					<a href="<?php the_permalink(); ?>">Plus d'infos</a>
    				</section>
    			</article>
    		    <?php endwhile; ?>
    			<?php wp_reset_query(); ?>	

    Which php code I must use to show the place which as been already registered ?
    Thank you.

    #987874
    George
    Participant

    Hey Jeff,

    While we cannot support custom code here, adding venues to that loop you’ve posted should be relatively simple. You can can use functions like tribe_get_venue(), which display the Venue Name, and all sorts of similar functions.

    In fact, we have a whole collection of them that you can pick and choose from to best suit your needs. To see the full list of these functions, head to your main plugin files for The Events Calendar and then head to src/functions/template-tags/. Each file in this folder has a collection of publicly-available functions that you can use in customizations like this. So, for your case, give the venue.php file a good read and play around with some of the functions available for use there.

    I hope that helps! 🙂

    Cheers,
    George

    #993060
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to display the place on my own home page ?’ is closed to new replies.