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 PHP

jlv-cpt-calendar.php

jlv-cpt-calendar-loader.php

 jlv-cpt-calendar-scriptinit.php

jlv-cpt-calendar-widget.php

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)

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="">