hypedev

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Filtering Events by Categories? #844178
    hypedev
    Participant

    Thanks very much, that worked!

    Out of interest, if I created a custom taxonomy for tribe events, would it be possible to filter by them, instead of the standard tribe events categories?

    in reply to: Single Events Page Not Working? #843439
    hypedev
    Participant

    Thanks very much!

    in reply to: Pagination Problems #533285
    hypedev
    Participant

    Barry,

    Regarding the permalink issue – I will have a look at sorting that out by doing what you suggested.

    Regarding the first problem – whilst changing the template back to default does fix this, it doesn’t help me a whole lot, as I need to use my custom template. Can you take a look at my code and let me know where I’m going wrong?

    Here’s the ‘list/loop.php’ template:

    <?php
    /**
    * List View Loop
    * This file sets up the structure for the list loop
    *
    * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/loop.php
    *
    * @package TribeEventsCalendar
    * @since 3.0
    * @author Modern Tribe Inc.
    *
    */

    if ( !defined(‘ABSPATH’) ) { die(‘-1’); } ?>

    <?php
    global $more;
    $more = false;
    ?>

    <?php while ( have_posts() ) : the_post(); ?>
    <?php do_action( ‘tribe_events_inside_before_loop’ ); ?>

    <!– Month / Year Headers –>
    <!– <?php tribe_events_list_the_date_headers(); ?> –>

    <!– Event –>
    <div id=”post-<?php the_ID() ?>” class=”<?php tribe_events_event_classes() ?> box project”>
    <?php tribe_get_template_part( ‘list/single’, ‘event’ ) ?>
    </div><!– .hentry .vevent –>

    <?php do_action( ‘tribe_events_inside_after_loop’ ); ?>
    <?php endwhile; ?>

    Here’s the ‘list/content.php’ template:

    <?php
    /**
    * List View Content Template
    * The content template for the list view. This template is also used for
    * the response that is returned on list view ajax requests.
    *
    * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/content.php
    *
    * @package TribeEventsCalendar
    * @since 3.0
    * @author Modern Tribe Inc.
    *
    */

    if ( !defined(‘ABSPATH’) ) { die(‘-1’); } ?>

    <div id=”tribe-events-content” class=”tribe-events-list”>

    </div><!– #tribe-events-header –>
    <?php do_action( ‘tribe_events_after_header’ ); ?>
    <div class=”tribe-events-loop hfeed vcalendar”>
    <div id=”boxes” class=”cf”>

    <div class=”grid-sizer”>
    </div>

    <!– Events Loop –>
    <?php if ( have_posts() ) : ?>
    <?php do_action( ‘tribe_events_before_loop’ ); ?>
    <?php tribe_get_template_part( ‘list/loop’ ) ?>
    <?php do_action( ‘tribe_events_after_loop’ ); ?>
    <?php endif; ?>
    </div>
    </div><!– .tribe-events-loop –>
    <!– List Footer –>
    <?php do_action( ‘tribe_events_before_footer’ ); ?>

    <script>
    jQuery( document ).ready(function($) {

    var $container = $( ‘#boxes’ );

    // initialize Isotope after all images have loaded, to avoid overlapping boxes!
    $container.imagesLoaded( function() {

    $container.isotope({
    // options
    itemSelector: ‘.box’,
    layoutMode: ‘masonry’,
    masonry: {
    columnWidth: ‘.grid-sizer’
    }
    });
    });

    $(‘#boxes’).animate({ opacity: ‘1’ }, 1200);
    });
    </script>

    <div id=”tribe-events-footer”>

    <!– Footer Navigation –>
    <?php do_action( ‘tribe_events_before_footer_nav’ ); ?>
    <?php tribe_get_template_part( ‘list/nav’, ‘footer’ ); ?>
    <?php do_action( ‘tribe_events_after_footer_nav’ ); ?>

    </div><!– #tribe-events-footer –>
    <?php do_action( ‘tribe_events_after_footer’ ) ?>

    <!– #tribe-events-content –>

    Here’s the ‘list/nav.php’ template:

    <?php
    /**
    * List View Nav Template
    * This file loads the list view navigation.
    *
    * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/nav.php
    *
    * @package TribeEventsCalendar
    * @since 3.0
    * @author Modern Tribe Inc.
    *
    */
    global $wp_query;

    if ( !defined(‘ABSPATH’) ) { die(‘-1’); } ?>

    <h3 class=”tribe-events-visuallyhidden”><?php _e( ‘Events List Navigation’, ‘tribe-events-calendar’ ) ?></h3>
    <ul class=”tribe-events-sub-nav”>
    <!– Left Navigation –>
    <?php if( tribe_is_past() ) : ?>
    <li class=”tribe-events-nav-previous tribe-events-nav-left tribe-events-past”>
    <?php if( get_next_posts_link() ) : ?>
    “><?php _e( ‘<span>«</span> Previous Events’, ‘tribe-events-calendar’ ) ?>
    <?php endif; ?>
    <!– .tribe-events-nav-previous –>
    <?php elseif ( tribe_is_upcoming() ) : ?>
    <?php if( get_previous_posts_link() ) : ?>
    <li class=”tribe-events-nav-previous tribe-events-nav-left”>
    ” rel=”prev”><?php _e( ‘<span>«</span> Previous Events’, ‘tribe-events-calendar’ ) ?>
    <?php elseif ( tribe_has_past_events() ) : ?>
    <li class=”tribe-events-nav-previous tribe-events-nav-left tribe-events-past”>
    ” rel=”prev”><?php _e( ‘<span>«</span> Previous Events’, ‘tribe-events-calendar’ ) ?>
    <?php endif; ?>
    <!– .tribe-events-nav-previous –>
    <?php endif; ?>

    <!– Right Navigation –>
    <?php if( tribe_is_past() ) : ?>
    <?php if( get_query_var( ‘paged’ ) > 1 ) : ?>
    <li class=”tribe-events-nav-next tribe-events-nav-right tribe-events-past”>
    ” rel=”next”><?php _e( ‘Next Events <span>»</span>’, ‘tribe-events-calendar’ ) ?>
    <?php elseif( !get_previous_posts_link() ) : ?>
    <li class=”tribe-events-nav-next tribe-events-nav-right”>
    ” rel=”next”><?php _e( ‘Next Events <span>»</span>’, ‘tribe-events-calendar’ ) ?>
    <?php endif; ?>
    <!– .tribe-events-nav-previous –>
    <?php elseif ( tribe_is_upcoming() ) : ?>
    <li class=”tribe-events-nav-next tribe-events-nav-right”>
    <?php if( get_next_posts_link() ) : ?>
    ” rel=”next”><?php _e( ‘Next Events <span>»</span>’, ‘tribe-events-calendar’ ) ?>
    <?php endif; ?>
    <!– .tribe-events-nav-previous –>
    <?php endif; ?>

    It seems to me that the loop of running more than once, which is why both the past and future events are showing up, when only the past events should be shown.

    in reply to: Pagination Problems #531763
    hypedev
    Participant

    In addition to this, since I have installed the Pro version of the plugin, none of my ‘single event’ pages are working (I’m getting a ‘Page not found’ message when I navigate to the page).

    The same also happens when I attempt to navigate to the ‘week’ view (http://engineering.hypedev1.co.uk/events/week). With the week view, do I need to set this up somewhere in order for it to work?

    in reply to: Pagination Problems #531176
    hypedev
    Participant

    Hi Barry,

    I have customised the ‘list’ view extensively, yes.

    I just reverted the template to the default, and while this fixes the first problem, the second problem still persists.

    Have a look at the page again to see it with the default ‘list’ templates…

Viewing 5 posts - 1 through 5 (of 5 total)