Single-event.php
-
Hi I tried to ad this code to a single-event.php page but the site break and cannot show anything or very Brocken page !
‘<?php get_header(); ?>
<div <?php post_class(); ?>>
<article>
<?php ct_mission_news_featured_image(); ?>
<div class=’post-header’>
<h1 class=’post-title’><?php the_title(); ?></h1>
</div><div class=”post-content”>
<?php
global $post;$EM_Event = em_get_event($post->ID, ‘post_id’);
//display feature image
echo $EM_Event->output(‘#_EVENTIMAGE’);//get only the feature image url
echo $EM_Event->output(‘#_EVENTIMAGEURL’);//use something like this
echo $EM_Event->output(‘#_EVENTNOTES’);//or this; formatting can be set under Events > Settings > Formatting > Events > Single event page format
$format = get_option ( ‘dbem_single_event_format’ );
echo $EM_Event->output($format);?>
</div></article>
<?php comments_template(); ?>
</div>
<?php get_footer(); ?>`
- The topic ‘Single-event.php’ is closed to new replies.