Seth

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 30 total)
  • Author
    Posts
  • in reply to: Incorrect recurring event info from custom loop #13636
    Seth
    Participant

    Sure, I created a shortcode so I could display upcoming events on any page/post.

    /* Upcoming events shortcode ****************************************************************/
    function events_shortcode($atts) {
    extract(shortcode_atts(array(
    'category' => '',
    'limit' => 4,
    'display_city' => false
    ), $atts));

    $events = ''; // Will contain all of the events to display

    global $wp_query;
    $tribe_ecp = TribeEvents::instance();

    $old_display = $wp_query->get('eventDisplay');
    $event_options = array(
    'numResults' => $limit,
    'tribe_events_cat' => $category,
    'eventDisplay' => 'upcoming'
    );

    $event = tribe_get_events( $event_options );

    if(!$event[0]) {
    $events .= 'There are no upcoming events at this time.';
    } else {

    $counter = 1;
    foreach($event as $e) :
    if($counter % 2) { $events .= ''; }
    $event_categories = get_the_terms( $e->ID, $tribe_ecp->get_event_taxonomy());

    $events .= '';
    $events .= '';
    $events .= tribe_get_start_date($e->ID, false, 'M').''.tribe_get_start_date($e->ID, false, "j");
    $events .= '';
    $events .= 'ID).'">'.get_the_title($e->ID).'';
    $events .= '';
    if(tribe_get_start_date($e->ID, false, 'g:i a') !== '12:00 am') {
    $searchArray = array(":00", "am", "pm");
    $replaceArray = array("", "a.m.", "p.m.");
    $events .= str_replace($searchArray, $replaceArray,tribe_get_start_date($e->ID, false,'g:i a')) .' - ';
    }
    if(tribe_has_venue($e->ID)) {
    $events .= tribe_get_venue($e->ID);
    }
    $events .= '
    ';
    if(tribe_get_city($e->ID) && $display_city) {
    $events .= ''.tribe_get_city($e->ID).', '. tribe_get_state($e->ID).'';
    }
    $events .= '';
    $counter++;
    if($counter > $limit) { break; }
    endforeach;
    }
    wp_reset_query();
    $events .= '';
    return $events;
    }
    add_shortcode('events', 'events_shortcode');

    Seth
    Participant

    Yep that’s right.

    in reply to: Incorrect recurring event info from custom loop #13346
    Seth
    Participant

    You guys are great, thanks!

    in reply to: Events Calendar PRO Feature Requests #13179
    Seth
    Participant

    @Rob, yep just like you said. I was thinking of an “Add another” type of feature for dates.

    in reply to: Events Calendar PRO Feature Requests #12920
    Seth
    Participant

    Currently there is no great way to link to a recurring event. You can link to a specific occurrence, to the series list, or to the base URL which by default goes to the first event of the series.

    Maybe there could be an option in the settings:

    Base URL for recurring events links to:
    [ ] First event in series
    [x] Next upcoming event in series
    [ ] Series list

    That way I could link or tell someone go to http://www.website.com/event/event-name/ and know that it will always take them to the next upcoming event of that series.

    in reply to: Events Calendar PRO Feature Requests #12916
    Seth
    Participant

    Many of my events*

    in reply to: Events Calendar PRO Feature Requests #12909
    Seth
    Participant

    I would like a way to add random dates to an event. Many of my dates don’t have any rhyme or reason to how they repeat.

    in reply to: Events Calendar PRO Feature Requests #12554
    Seth
    Participant

    Yep similar, with the addition of linking to the next upcoming event.

    in reply to: Events Calendar PRO Feature Requests #12541
    Seth
    Participant

    A way to link to the next upcoming event in a series would be nice. That way if someone ends up viewing an event that has passed you could link them to the next one.

    “This event has passed. The next upcoming date for this event is March 1, 2012.”

    in reply to: Events Calendar PRO Feature Requests #12426
    Seth
    Participant

    Thanks, keep up the good work!

    in reply to: Events Calendar PRO Feature Requests #12420
    Seth
    Participant

    is_reoccuring() *

    in reply to: Events Calendar PRO Feature Requests #12419
    Seth
    Participant

    Hoping to get this bumped up in the list. I’m in need of using the function tribe_get_start_date() for reoccurring events using a post ID. I see in the comments above the function that it is already known and planned.

    Also a reoccurring() function might be nice too.

    in reply to: After upgraded to 2.02. Start date & end date disappeared #12354
    Seth
    Participant

    It didn’t work in 2.0 either.

    The documentation right before the function tribe_get_start_date() mentions that the function does not work with a post ID for reoccurring events.

    in reply to: After upgraded to 2.02. Start date & end date disappeared #12351
    Seth
    Participant

    Well that solved one issue, the dates show up now which is good. However it is showing the date the reoccurring series originally started rather than this specific event’s start time.

    in reply to: After upgraded to 2.02. Start date & end date disappeared #12349
    Seth
    Participant

    I’m also in need of a (hopefully quick) fix to tribe_get_start_date() for reoccurring events. I see in the comments that it’s a known issue already.

Viewing 15 posts - 16 through 30 (of 30 total)