Home › Forums › Calendar Products › Events Calendar PRO › Insert calendar into page and exclude a category
- This topic has 4 replies, 3 voices, and was last updated 10 years, 8 months ago by
Support Droid.
-
AuthorPosts
-
August 24, 2015 at 1:12 pm #998521
Myrna Ougland
ParticipantI see this question has come up several times; I need to show two instances of the full month calendar on my site, each one excluding specific categories. I see that you are working on a shortcode to do this, but I need to launch the site in mid-September. In one post (https://theeventscalendar.com/support/forums/topic/is-there-a-way-to-insert-the-calendar-into-a-page-and-not-just-a-dedicated-page/) you mention some work-around functions; I’m happy to use these if you can provide them, or I can insert whole template files into the appropriate page if that’s what’s necessary. Any help would be greatly appreciated! (Live site does not currently contain calendar, in development only.)
August 24, 2015 at 3:25 pm #998567Geoff
MemberHi Myrna and welcome back to the forums!
We do have shortcodes available in PRO, but those embed the widgets rather than the full calendar views.
To get the full month view with specific events, I think your best bet is to check out the Filter Bar add-on. It allows you to filter the calendar by specific categories, which then gives you a direct URL you can link and direct people to.
Otherwise, I think you’re looking at custom functions. We’re fairly limited in how much we can support customization questions, but here’s an example of how to remove specific categories from views that could certainly help you get started.
Cheers!
GeoffAugust 24, 2015 at 3:34 pm #998575Myrna Ougland
ParticipantHi Geoff,
Thanks for your quick reply, the function link you sent will probably be helpful. But I still need to find a way to insert a calendar into a page — for example I’ll have a page similar to this: http://theislandgateway.com/event-center/ and I need to insert a calendar near the bottom, ideally your full calendar format. Is there any way to do this? Can I copy and paste template files into that page template? I did see where I can declare that page template to be my calendar template — and that could work — but still leaves me in the lurch when I need to insert a second calendar on a different page. Allowing users to filter isn’t going to be a good solution in this situation. Thanks again! (BTW looks like I can use CSS to hide and show particular categories if I can just figure out how to get the calendar onto two different pages.)-
This reply was modified 10 years, 8 months ago by
Myrna Ougland.
August 25, 2015 at 7:47 am #998789Geoff
MemberHi Myrna and thanks for following up!
We do have shortcodes for embedding the PRO calendar widgets in a page or post, but I;m afraid nothing for full calendar views just yet, There is the Event Rocket plugin which has a shortcode for embedding the full List View, but I don’t believe it includes Month View.
Creating you own custom templates for each calendar page is certainly an option here, though that is quite a bit of work.
I really do think the best option–if it is feasible for the situation–is to use the calendar’s ability to have unique URLs for each category and modify the template from there. For example, if the calendar is currently in Month View and viewing category Birthday, then you can hook into tribe_events_before_html() and tribe_events_after_html() to inject your own content before and after the calendar’s markup. Here are a bunch of examples that can get you started for hooking into how to hook into those functions conditionally.
Cheers!
GeoffSeptember 9, 2015 at 7:05 am #1003230Support Droid
KeymasterThis 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. -
This reply was modified 10 years, 8 months ago by
-
AuthorPosts
- The topic ‘Insert calendar into page and exclude a category’ is closed to new replies.
