Mann ?
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [The Events Calendar] Upcoming events in templateAfter lots of pilfering about and sifting through every page, I came up with this:
<ul> <?php query_posts('&post_type=tribe_events&posts_per_page=5'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <li> <?php $startdate = get_post_meta($post->ID, '_EventStartDate', true); $db = $startdate; $timestamp = strtotime($db); ?> <a href="<?php the_permalink(); ?>"><?php if ($startdate == date('l, j F')) { echo '<strong>Today:</strong>'; } ?> <?php the_title(); ?></a><br /> <?php if ($startdate == date('l, j F')) { echo ''; } else { echo ''; echo date("l, j F", $timestamp); echo '<br />'; } ?> <small><?php $excerpt = strip_tags(get_the_excerpt()); echo $excerpt; ?></small></li> <?php endwhile; else: ?> <li>No events scheduled.</li> <?php endif; wp_reset_query(); ?> </ul>Not as elegant as anything on the tribe website, but as long as this lovely plugin is working, I’m a happy Mann.
This is the solution for those on MediaTemple:
http://kb.mediatemple.net/questions/514/How+do+I+set+the+path+for+open_basedir%3F#gsAnd this is how you would go about it on other web hosts:
http://stackoverflow.com/questions/223800/how-can-i-relax-phps-open-basedir-restriction
Viewing 2 replies - 1 through 2 (of 2 total)