WordPress.org

Forums

The Events Calendar
[resolved] Using a custom template (5 posts)

  1. jmahony
    Member
    Posted 2 years ago #

    Hello,

    I wonder if anyone could help me.

    The way I understand The Events Calendar working at the moment is, when the user is viewing a single event they are directed to page.php then the template in ./events/single.php is included within page.php.

    Is there any way around this, I would like any events to load up say single-tribe_events.php when a single event is loaded.

    At the moment I'm having to use a bit of a fudged way to get the desired result and I'm sure there is probably a better way!

    At the moment I have a switch within page.php

    <?php
    	switch ($post->post_type) {
    		case 'tribe_events':
    			include('templates/live.php');
    			break;
    		default:
    			include('templates/page.php');
    			break;
    	}
    ?>

    Thanks for any help

    Josh

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. jmahony
    Member
    Posted 2 years ago #

    Ignore this, I moved my site to a new server and it appears to be working as expected now, weird!

  3. Rob La Gatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Hey there jmahony. Thanks for the note here. Awesome to hear moving to a new server did the trick; not sure why that would be the case but all is well that ends well, right?

    Going to mark this RESOLVED since it seems like you're set, but please let me know if you disagree. Otherwise feel free to reach out if we can do anything else in the future.

  4. jmahony
    Member
    Posted 2 years ago #

    Yes that fine, thank you!

  5. Rob La Gatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Great, thanks for your support and patience. If you ever find yourself with a free moment and would be willing to write us a review or give a "Works" rating here on the dot-org forum, we sure would appreciate it.

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.