Skip to content

Instantly share code, notes, and snippets.

View shalintripathi's full-sized avatar

Shivakant Tripathi shalintripathi

View GitHub Profile
<?php
// Setup Podio Client
Podio::setup(CLIENT_ID, CLIENT_SECRET);
// Setup Redis
$redis = new Predis\Client(REDIS_INFO)
$my_cache_key = "podio_cache";
<?php
/*-----------------------------------------------------------------------------------*/
/* Conditional Logic to Detect Various Event Related Views/Pages
/*-----------------------------------------------------------------------------------*/
if( tribe_is_month() && !is_tax() ) { // Month View Page
echo 'were on the month view page';
} elseif( tribe_is_month() && is_tax() ) { // Month View Category Page