Home › Forums › Calendar Products › Events Calendar PRO › Calendar not showing, outputting like a post using single.php
- This topic has 6 replies, 3 voices, and was last updated 8 years, 1 month ago by Support Droid.
-
AuthorPosts
-
March 18, 2016 at 10:33 am #1091090KurtParticipant
My website has a blog and will have the events calendar as well (on a separate page). I am trying to get the Calendar to show up on my site, but instead it outputs the events using my single.php template (that I use for the blog), and there is no calendar. I switched the template files to every other one I have in the dropdown (around 8) and it still uses single.php. I reverted the theme to 2014 and the calendar does show up. This leads me to believe there is a conflict with the plugin and my theme. Is there anyway I can manually output the calendar through shortcode or another way that wouldn’t attribute it to a post?
March 18, 2016 at 10:44 am #1091099GeoffMemberHey Kurt,
Oh man, that does indeed sound like a conflict with the plugin and the theme!
The only shortcodes offered in Events Calendar PRO at the moment are the ones that embed the calendar widgets on any page or post. Unfortunately, that does mean there are no shortcodes for full calendar views or single events at this time.
I think the only other option would be to construct your own post template for single events using our available functions to pull the content into the template. You may even be able to use the single-event.php template as the blueprint for that template.
Does the theme author provide any support and, if so, do they have some ideas on why single.php would be overriding the custom post type template for events?
Thanks!
GeoffMarch 18, 2016 at 12:51 pm #1091147KurtParticipantHi Geoff,
So I found that the theme was actually using index.php for blog posts, so I moved those over to single.php and there was still an issue of the calendar not showing up. With the blank index.php I copied and pasted the default-template.php contents into it and the calendar finally did show up! This is great except now it is tied to my index.php, and some of the functionality is not working (the tooltip on the month view). I tried doing custom templates by moving the views over to a /tribe-events/ folder in my theme but still they would not show up on the page.
March 19, 2016 at 7:28 am #1091323GeoffMemberOh geez, that is super weird! I honestly haven’t seen this come up in the past and anything related to templates is often resolved when changing the event template setting (Events > Settings > Display) to the Default Events Template.
It really does sound like the theme is crafted in such a way that it is interfering with the default WordPress template hierarchy — were you able to reach out to the theme author? I think that would be the best avenue for this issue. And, of course, I’m happy to keep this thread open while you do in case there is anything I can help answer from the plugin’s end.
Thanks,
GeoffMarch 22, 2016 at 10:02 am #1092463KurtParticipantHey Geoff,
Thanks for the continued help!
I have reached out to the theme developers and they want me to ask you if The Event Calendar plugin is expecting something to exist in the theme’s index.php file in order for the plugin to work correctly.
Thanks,
Kurt
March 22, 2016 at 1:54 pm #1092597GeoffMemberMy pleasure, and thanks for following up!
The Events Calendar does not require anything in index.php in order to work. In other words, I can completely wipe out the markup in the default Twenty Sixteen index.php file and the calendar continues to function as expected.
I hope this helps! Keep me posted if any other questions pop up and I’d be happy to help.
Geoff
April 6, 2016 at 9:35 am #1098991Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Calendar not showing, outputting like a post using single.php’ is closed to new replies.