TheChosen1
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] If page or singleNevermind found a solution
Done
Thanks Rob and Jonah for your help! I appreciate it.
I’ve reverted to just changing the default template file instead of using my own custom file and it does work.
But I would like to know what was the issue, the only line I did not have would be line 14 which is:
if ( !defined('ABSPATH') ) { die('-1'); }
I havent installed any other calender plugins prior to this.
As I stated I created a new template file called events.php which the code shown in pastebin link and then simply selected that as the template on the plugins settings templates tab.I have not used a page.php file, I used events.php which has codes the codes that include the plugins time:
<?php include(tribe_get_current_template()); ?>
Does this need to be in some kind of loop? Maybe that is the reason.
You can view the pages here:
https://tinyurl.com/9tvte63There are actually three events that I have created but it only shows 2 for some reason, when you go to ‘previous events’ it shows two blank events.
When reverting to default template it will show all three items and there is nothing in past events (how it should be).The template I have used is exactly as shown as in the pastebin link.
I have not changed any other files, both wordpress and the plugin are up to date too.Hi Rob
Thanks for your response,
I’ve followed your instructions and found that its the template file I’m using. I set the plugin to use custom page events.php that I created to display events, once I reverted to the default template it worked fine.I’m struggling to figure out what went so wrong with my template though, do you mind having a look?
The code is in the link below:
https://pastebin.com/1YK9NX1ZCheers!