Forum Replies Created
-
AuthorPosts
-
kirstyburgoineParticipant
Hi Barry,
Thanks so much, the second one was the perfect fix 🙂
kirstyburgoineParticipantYes, that fixed it! Thank you so much!
For some reason I had misread the themer’s guide and got the path wrong and didn’t notice. Thank you for all of your help 🙂
kirstyburgoineParticipantHi Brook,
The theme is using the default events template, so as far as I can tell it should be working. It is set to show Month view though so maybe I’m editing the wrong template or saving it in the wrong place in my theme?
I am editing: /themes/my-theme/tribe-events/views/default-template.php I have also tried editing: /themes/my-theme/tribe-events/views/month.php which hasn’t worked either.
Here is a screen grab of my settings for the template usage: http://cl.ly/image/3p073D1V2q0p?_ga=1.94628188.1709651499.1430211226
kirstyburgoineParticipantAs an additional update…
I have the settings for the events calendar set to use the default events template and the file I am editing is: /themes/my-theme/tribe-events/views/default-template.php
I have also tried adding this to the top of the page:
echo “default = ” . $protected;Which, if nothing else should print the word “default” to the screen at the very top of the page even if there is a problem with my variable, but it doesn’t. So it must be something to do with editing the wrong template? If thats the case, which is the right one?
Thanks
Kirsty
kirstyburgoineParticipantHi Brook,
Thanks so much for coming back to me, I really appreciate it. I’m not sure thats quite what I’m after though.
The variable $protected is a site option and not saved within an individual post or pages meta_data and does work on all archive pages as well. This particular approach should mean that I don’t have to amend $WP_Query at all and really is as simple as… “If this is yes show the content if no, don’t”.
The code I included is the same on every template within my theme, which I included just so you could see my approach (Totally understand about code reviews and wasn’t expecting that level of help 🙂 ) and does work everywhere else which is why I thought maybe I’ve edited the wrong template files for the calendar?
kirstyburgoineParticipantHi Brook,
Thats awesome news! I’m really pleased that this will be included in a future release. Thanks for getting back to me.Kirsty
-
AuthorPosts