Can I modify event-single.php to call a custom post format?
-
Hi there,
I’m currently developing a site that utilizes custom post formats. To explain further, the single.php has a loop that looks for post type information and displays the relevant code inside the single template.
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php get_template_part( 'post-formats/format', get_post_format() ); ?> <?php endwhile; ?>
Anyway, I was wondering if I could edit the Event Managers ‘event-single.php’ to call a particular one of my post formats, format-event.php to be exact. I feel like I should be able to amend the following:
global $EM_Event; /* @var $EM_Event EM_Event */ echo $EM_Event->output_single();
I’ve tried passing a few parameters into output_single() but not had the desired response.
Not sure if I’ve made the most sense here – let me know if you need more information. Any help would be most appreciated!
James
- The topic ‘Can I modify event-single.php to call a custom post format?’ is closed to new replies.