WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Using a custom template

[Resolved] Using a custom template

  • 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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Ignore this, I moved my site to a new server and it appears to be working as expected now, weird!

    Plugin Author Rob La Gatta
    Member

    @roblagatta

    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.

    Yes that fine, thank you!

    Plugin Author Rob La Gatta
    Member

    @roblagatta

    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Using a custom template’ is closed to new replies.