jrgreenfield1
Forum Replies Created
-
Hi Rob-
Thanks! I think my “wringer developer” (plug for him – Mike at cfxdesign.com) solved it and he thought that it was an error in the plugin itself. He mentioned that he submitted it to you guys so keep an eye out for it. Thanks again!Hi Rob and Trevor –
Sorry it’s taken so long for me to get back– Had a baby boy on Tuesday.No dice on that code. I just can’t figure this one out! I’m wondering if it has to do with the upgrade and import of old calendar items.
BTW – Rob, thanks for being so on top of support. Your involvement and responsiveness is appreciated.
Hi Rob, It’s not I don’t think. I’m using the following code currently which uses the template tag tribe_get_events, but for some reason the ‘upcoming’ aren’t displaying the next three. I tried displaying using the widget and that displays the same ‘non next 3’ events. Any suggestions?
<?php global $post; $upcoming = tribe_get_events( array('eventDisplay'=>'upcoming', 'posts_per_page'=>3) ); foreach($upcoming as $post) : setup_postdata($post); echo '<h3 class="clearfix"><a href="'; the_permalink(); echo '">'; the_title(); echo '</a></h3>'; if ( has_post_thumbnail() ) { echo '<a href="'; the_permalink(); echo '"><div style="float:left;margin:0 10px 10px 0;" >'; the_post_thumbnail('thumbnail'); echo '</div></a>'; the_excerpt(); } else { echo the_excerpt(); } endforeach; ?>
FOUND IT:
That’s where the answer came from and this is the answer:
[Code moderated as per the Forum Rules. Please use the pastebin]
THANK YOU SO MUCH!
This was killing me.
Thanks, I don’t think it does because that would effect the rest of the site as well.
The code below works really well, but I’m only looking to grab 2-3 events. Not sure where I would put the loop though.
<?php query_posts($query_string . '&category_name=events'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php if(the_event_start_date(null, false, mdY) >= date(mdY)) : ?> <li class="event"> <?php if ( is_new_event_day() ) : ?><h4 class="event-day"><?php echo the_event_start_date( null, false ); ?></h4><?php endif; ?> <div class="event-content"> <?php the_title('<h2 class="event-title"><a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">', '</a></h2>'); ?> <?php the_excerpt() ?> </div> </li> <?php endif; ?> <?php endwhile; else: ?> <p>No Events</p> <?php endif; ?>
oohtruck.
I’ve been trying to do what you did in your reply above for about 3-4 hours to no avail before finding your post. Is there a way to limit the number of events?
I would be incredibly appreciative if you would help me out,
Thanks