Skip Navigation

[Closed] WPTypes & Date – showing events in calendar

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 9 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqas 9 years, 4 months ago.

Assisted by: Waqas.

Author
Posts
#264810

Dear All,

Hey! I've got an issue with Types. I've added an custom field date to each post (category: events). Displaying it new query works fine. But how to show a calendar with highlighted days of specific events? this is my code:

hidden link

it is possible to achieve such sollution? after clicking on specifc day of event it would go directly to the event post.

thank you

#265000

Waqas
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Yes you can achieve this by custom coding or via 3rd party calendar plugin (which support integrating your custom code on calendar days).

The general idea is as below:

1. Populate calendar: Via custom code by populating days, weeks and months or via a 3rd party calendar plugin to display a real calendar

2. Iterate through each day and finding the matches for events falling on that date: Via custom query on your custom posts based on custom field's values. If you are using a 3rd party plugin for calendar, you must find such a plugin, which offers some hooks/filters (or short codes) to interfere with calendar items (dates) and manipulate accordingly.

3. Link each matching date with a post type template: So when user clicks on an available date, you can take user to list of events (or event details) page.

The whole solution, requires lot of custom coding and efforts involved, but in short it's a doable solution.

You can contact our Certified Partners at https://toolset.com/consultant/ - they can work closely with you to build your required solution.

The topic ‘[Closed] WPTypes & Date – showing events in calendar’ is closed to new replies.