Chris

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Events Order Script Breaks New User Activation Email #1301405
    Chris
    Participant

    Thanks. The staging site is an exact replica. Yes, the issue seems persistent through all users.

    in reply to: Events Order Script Breaks New User Activation Email #1300675
    Chris
    Participant

    This reply is private.

    in reply to: Customize Related Events Template #1290980
    Chris
    Participant

    Thanks Jennifer,

    Reverting to tribe_events_get_the_excerpt( $post ) seemed to do the trick!

    Much appreciated

    in reply to: Customize Related Events Template #1290166
    Chris
    Participant

    Still having a problem with the excerpt: http://tomthomson.org/event/ssspun/

    Below is the code from my copy of the related-events.php template

    <?php
    /**
     * Related Events Template
     * The template for displaying related events on the single event page.
     *
     * You can recreate an ENTIRELY new related events view by doing a template override, and placing
     * a related-events.php file in a tribe-events/pro/ directory within your theme directory, which
     * will override the /views/pro/related-events.php.
     *
     * You can use any or all filters included in this file or create your own filters in
     * your functions.php. In order to modify or extend a single filter, please see our
     * readme on templates hooks and filters
     *
     * @package TribeEventsCalendarPro
     *
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	die( '-1' );
    }
    
    $posts = tribe_get_related_posts( array ( 'posts_per_page' => 1));
    
    if ( is_array( $posts ) && ! empty( $posts ) ) : ?>
    
    <h5>Also On View</h5>
    
    	<?php foreach ( $posts as $post ) : ?>
    <div  class="x-container max "  style="margin: 0px auto;padding: 0px; margin-bottom:15px;">
    
    			<div  class="x-column x-sm x-1-3" style="padding: 0px;" >
    
    		<?php $thumb = ( has_post_thumbnail( $post->ID ) ) ? get_the_post_thumbnail( $post->ID, 'large' ) : '<img src="' . esc_url( trailingslashit( Tribe__Events__Pro__Main::instance()->pluginUrl ) . 'src/resources/images/tribe-related-events-placeholder.png' ) . '" alt="' . esc_attr( get_the_title( $post->ID ) ) . '" />'; ?>
    		<div class="tribe-related-events-thumbnail">
    			<a href="<?php echo esc_url( tribe_get_event_link( $post ) ); ?>" class="url" rel="bookmark"><?php echo $thumb ?></a>
    		</div>
    
    </div>
    			<div  class="x-column x-sm x-2-3" style="padding: 0px;" >
    
    		<div class="tribe-related-event-info">
    			<h6 class="tribe-related-events-title"><a href="<?php echo tribe_get_event_link( $post ); ?>" class="tribe-event-url" rel="bookmark"><?php echo get_the_title( $post->ID ); ?></a></h6>
    			
    			<div class="tribe-events-list-event-description tribe-events-content">
    	<?php echo get_the_excerpt( $post ); ?>
    	<a href="<?php echo esc_url( tribe_get_event_link() ); ?>" class="tribe-events-read-more" rel="bookmark"><?php esc_html_e( 'Find out more', 'the-events-calendar' ) ?> &raquo;</a>
    </div><!-- .tribe-events-list-event-description -->
    
    		</div>
    
    			</div>
    
    </div>
    
    	<?php endforeach; ?>
    <?php
    endif;
    
Viewing 4 posts - 1 through 4 (of 4 total)