Code for Using Pie Calendar with Bricks

I like the Pie Calendar plugin but was having trouble finding any code to make it work with various portions of Bricks Builder. Pie Calendar team has some code snippets on their site, but thought I’d post what worked for me here in case others are using it.

Two sets of code:

  1. Adding Pie Calendar custom query using Bricks builder query editor. This allows for customizing the events shown in the loop with custom meta and tax queries. Helpful for restricting events by certain dates (future, past) and by custom taxonomies. Pie Calendar uses ISO time, so this includes a conversion to a more readable date format as well. Code and instructions here: GitHub - craiggrella/piecalendar-cpt-query-bricks-builder: This is a custom post type query for bricks builder query loop query editor to query pie calendar events from a custom post type..
  2. Adding Pie Calendar start and end dates and times as admin columns in the post list screen. A lot of tutorials out there require admin columns plugin, but I wanted to code this and save the cost of another plugin. Code and Instructions here: GitHub - craiggrella/piecalendar-admin-columns: Adds piecalendar custom fields to admin columns for custom post type for events..

Hope it helps someone!