Calendar of CPT Using ACF Date/Time Field

This is a work in progress. Displays a small calendar with dates specified using a date/time field in Advanced Custom Fields on a Custom Post Type. Currently assumes a posts to posts connection between two CPTs projects and activities.
Screen Shot 2013-12-23 at 0.26.47






The JS

 The CSS

The CSS is adapted from Mini Calendar

Display the calendar by placing the widget in a sidebar, where you can select the month and year, or directly in a template using:

<?php $jlv_cpt_calendar->printcalendar(12,2013); ?>

where 12 is the month and 2013 is the year

Download Source

The following two tabs change content below.

Jeremy Varnham

Latest posts by Jeremy Varnham (see all)

One comment on “Calendar of CPT Using ACF Date/Time Field

  1. Viorel Epuran January 1, 2017 5:36 pm

    For anyone still looking for a soluion, i have created a calendar plugin that works with custom post type and uses ACF custom_date to display the articles. If you need it, email me at :, and i can give it to you.

    Right now i am trying to clean it a bit, and will be uploading it to wordpress repository asap.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">