Forum Replies Created
-
AuthorPosts
-
James KashettaParticipant
figured it out:
<?php echo tribe_get_event_meta( get_the_ID(), ‘_EventURL’, true ); ?>James KashettaParticipantSome of the code got cut off for some reason. let me try that again:
<?php
global $post;
$all_events = tribe_get_events(array(
‘eventDisplay’=>’all’,
‘posts_per_page’=>-3
));foreach($all_events as $post) {
setup_postdata($post);
$url = tribe_get_event_meta( $post, ‘_EventURL’, true );
?>
<div class=”c4″ id=”product”>
<div class=”artist_date”> <?php if (tribe_get_start_date() !== tribe_get_end_date() ) { ?>
<?php echo tribe_get_start_date( $post, false, ‘ j M’ ); ?> – <?php echo tribe_get_end_date( $post, false, ‘ j M’ ); ?>
<?php } else { ?>
<?php echo tribe_get_start_date( $post, false, ‘j M’ ); ?>
<?php } ?></div>
<?php echo tribe_meta_event_category_name(); ?><div class=”blog-title-home”>< a href = ‘$url’ > <?php the_title(); ?></div>
<?php the_excerpt(); ?><?php echo tribe_get_city() ?>
<?php echo tribe_get_region() ?>
<?php echo tribe_get_country() ?></div>
<?php } ?>
<?php wp_reset_query(); ?>James KashettaParticipantI figured out how to do this a few days ago I used <?php if(tribe_is_event()) { ?> in the if statement to pull the image in for the events.
James KashettaParticipantI meant time not date.
James KashettaParticipantPretty much every event on the 2nd floor page has been effected:
http://www.rockandrollhoteldc.com/second-floor/The latest one was Becky w/Trevor Martin. The date was changed from 8pm to 10pm and when I had to change the date even though I could see it in the back end it would not change on the live site. I selected the first instance from Dec27. I had to delete all 12 events and redo the whole thing.
I always start with the first event because I’ve learned about the 5-10 thing. Turning off all plugins and going back to the standard theme had no effect what so ever.
James KashettaParticipantI literally just fixed it and was about to ask to close after I posted it. You are exactly right thanks snorton!
James KashettaParticipantLets try that one more time:
There is PHP etc but thats messing up the post.
echo tribe_get_start_date( $post->ID, false, ‘D. M j’ );James KashettaParticipantTHe code did not copy properly the AP should be:
ID, false, ‘D. M j’ ); ?>
James KashettaParticipantGordon,
I was able to do exactly what you wanted to do by creating different pages. You can see the results here:http://xeroproject.com/RnRHotel/
What I did was create a page called page_live.php. and just kept the basic calendar page for the calendar view.
within my page.php i put the following code.if (is_page(‘live’)) {
include(TEMPLATEPATH.’/page_live.php’);
} else{
include(TEMPLATEPATH.’/page_default.php’);
}
?>WIthin page_live.php I included the list view and it worked like a charm.
April 16, 2013 at 5:01 pm in reply to: Only display tribe_custom_fields() if there is a value #46039James KashettaParticipantI just figured it out!
April 16, 2013 at 4:16 pm in reply to: Only display tribe_custom_fields() if there is a value #46038James KashettaParticipantThe problem I am having is that the youtube player is showing up even if there is no value set. Id like to set it up so that the player only shows if there is a value. I tried a few if statements but no dice.
April 16, 2013 at 4:16 pm in reply to: Only display tribe_custom_fields() if there is a value #46037James KashettaParticipantSure thing, I’m using the custom field as the video ID like so:
http://snippi.com/s/jy6jiv0James KashettaParticipantYep that worked. Thanks.
-
AuthorPosts