• Resolved James_tnf

    (@james_tnf)


    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

    https://www.ads-software.com/plugins/events-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter James_tnf

    (@james_tnf)

    Maybe it’s not event-single.php I need to modify…. hmmm

    Thread Starter James_tnf

    (@james_tnf)

    Sussed it.

    I’ve added ‘post-formats’ to the supports arrays in the custom post type set up in events-manager/em-posts.php

    Not the most glamorous solution and am now having to write notes to warn other admins to update the plugin with caution and re-add my changes.

    I’d love it if you could add the ‘post-formats’ element to the custom port type set up in future updates ??

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I modify event-single.php to call a custom post format?’ is closed to new replies.