Home › Forums › Calendar Products › Events Calendar PRO › Insert content below calendar
- This topic has 7 replies, 3 voices, and was last updated 10 years, 1 month ago by Casey.
-
AuthorPosts
-
February 22, 2014 at 12:42 am #108189nikolajmogensenParticipant
Hi
I’m setting up an event site but would love to be able insert content below the calendar. The content is supposed to be unique for each category of events.
Is this possible and how?
I can’t seem to find anything in the support and tutorials as well as in the forum.
Thanks alot
Nikolaj MogensenFebruary 24, 2014 at 5:44 pm #108906Julie KuehlParticipantHey Nikolaj,
I can’t do this customization for you, but the information in this tutorial is probably the most relevant: https://theeventscalendar.com/altering-or-removing-headings-on-calendar-views/ Rather than making changes to the headings though, you’ll want to make the changes after the calendar. You might also find some useful information in our Documentation (http://docs.tri.be/) that can help you find the hooks you’re looking for.
Does that give you enough information to go on? If you need more information or if we can point you in the right direction, please let us know.
– Julie
February 26, 2014 at 12:44 pm #109768nikolajmogensenParticipantHi julie
Great – i now know in which file to put in the description – I just cant find the code in the documentation.
can you point me as to what to insert in the file in order to put in the description of the category below the calendar?
best regards
February 26, 2014 at 6:32 pm #110049Julie KuehlParticipantHey nikolajmogensen,
You should just be able to put it at the end of the month.php file like this: https://cloudup.com/cBA0WOpnwg7 to have it show up like this: https://cloudup.com/cxbpMgXtPyn
Is that what you need to keep going?
– Julie
March 2, 2014 at 2:12 am #111363nikolajmogensenParticipantHi Julie
Thx for the answer – however the solution will put in the same content on all category pages. What I would like is the category description to be shown. The one you edit under the categories like this: http://screencast.com/t/txuj7CyP
What should i write to put that into the month.php ?
best regards
March 4, 2014 at 5:46 am #112157CaseyParticipantnikolajmogensen,
Hello! Hopefully I can jump in and help you out here. I believe this function will do what you’re needing: http://codex.wordpress.org/Function_Reference/term_description. You’ll just need to pass the ‘term_id’ (aka event category id) and the taxonomy name. Something like this should do the trick: https://gist.github.com/ckpicker/9346705Hopefully that gets you started in the right direction, but let me know if you have further questions or if this answers your questions. Thanks! 🙂
-Casey-
March 9, 2014 at 1:52 am #116578nikolajmogensenParticipantGreat!
Putting in
<?php echo term_description( $term_id, $taxonomy ) ?>
In the month php made it for meMarch 10, 2014 at 6:50 am #116746CaseyParticipantExcellent! Thanks for confirming that this got you sorted. Since it looks like you’re all set, I’m going to mark this thread “Answered” and close it out.
By the way, if you have a minute or two, we would love it if you’d write a few words for us here: http://wordpress.org/support/view/plugin-reviews/the-events-calendar?filter=5
Thanks in advance. 🙂
Cheers,
Casey -
AuthorPosts
- The topic ‘Insert content below calendar’ is closed to new replies.