• Resolved anspaujd

    (@anspaujd)


    I am working on creating a custom event page that pulls the information from an event tagged as “featured” into a image slider with an upcoming events list next to it.

    You can see the existing plugin (The_Event_Calender Plugin) which is being transitioned out of at https://e21bak.oru.edu/events-3/

    I cannot seem to figure out how to access the event’s information in order to make this happen. What I need is someone to point out how I can call the following fields using PHP

    – #_EventName
    – #_EventNotes
    – #_EventImage
    – #_EventLink

    I know these are the internal placeholder names but I cannot seem to work out how to get the corresponding information to successfully be called using PHP.

    Please advise.

    https://www.ads-software.com/plugins/events-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter anspaujd

    (@anspaujd)

    Here is the current code being used:

    <div id="nav" class="clearfix">
    		<a id="region-slider-prev" class="region-slider-control"></a>
    		<a id="region-slider-next" class="region-slider-control"></a>
    		<div id="nav-slider" class="event-slider">
    			<?php $featuredEvents = tribe_get_events( array('eventDisplay'=>'upcoming', 'tax_query' => array(array('taxonomy'=> 'tribe_events_cat', 'field'=>'slug','terms'=>'featured-events'))));
    			foreach($featuredEvents as $post) : setup_postdata($post); ?>
    				<div class="wbSlide-region">
    					<a href="<?php the_permalink(); ?>">
    					<?php
    						if (has_post_thumbnail()){
    							the_post_thumbnail('region-slider-size');
    						}
    					?></a>
    					<div class="event-info">
    						<h3><?php the_title();?></h3>
    						<div class="date"><?php echo get_post_meta($post->ID, 'event_dates', true);?></div>
    						<?php the_excerpt();?>
    						<a href="<?php the_permalink();?>">Learn More &rarr;</a>
    					</div>
    				</div>
    			<?php endforeach;?>
    		</div>
    		<div id="upcoming-events-list">
    		<h3>Upcoming Events</h3>
    		<?php
    		echo em_events();
    		?>
            </div>
    	</div>
    
    	<div  id="content-bottom" class="clearfix events-main">
    		<h2>Featured Upcoming Events<a href="/eventscalendar">View Full Events Calendar &rarr;</a></h2>
    		<div class="clearfix"></div>
    		<div id="featured-events-wrap">
    		<?php foreach($featuredEvents as $post) : setup_postdata($post); ?>
    				<a href="<?php the_permalink();?>"><article <?php post_class("floatleft archive") ?> id="post-<?php the_ID(); ?>">
    					<div class="archive-image-wrap">
    						<?php
    						if (has_post_thumbnail()) {
    							the_post_thumbnail('region-graphic-size');
    							} else {
    							echo '<div class="archive-image-wrap-empty">There is no thumbnail available for this resource.</div>';
    							}
    						?>
    					</div>
    					<div class="entry-content">
    						<h3><?php the_title(); ?></h3>
    						<div id="thecontent">
    							<?php the_excerpt(); ?>
    						</div>
    					</div>
    				</article>
    			</a>
    
    		<?php endforeach; wp_reset_postdata(); ?>

    I need to work out how to change the call functions to referencing the data in the Event Manager Plugin rather than the The_Event_Calendar plugin.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry haven’t tried plugin The_Event_Calendar before and am afraid that this is not possible at the moment.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Creating custom page referencing database info’ is closed to new replies.