Skip to content

Instantly share code, notes, and snippets.

View paulgeisler's full-sized avatar

Paul Geisler paulgeisler

  • Aachen, Germany
View GitHub Profile
<?php
/**
* Template Name: Create Post
*
* @author Mike Hemberger
* @link http://thestizmedia.com/front-end-posting-with-acf-pro/
* @uses Advanced Custom Fields Pro
*/
/**
<?php
/**
* Customize Event Query using Post Meta
*
* @author Bill Erickson
* @link http://www.billerickson.net/customize-the-wordpress-query/
* @param object $query data
*
*/
<?php
global $post;
$CurrentDate = date('Y-m-d');
echo $CurrentDate;
$events_today = tribe_get_events(
array(
'start_date'=>$CurrentDate,
'end_date'=>$CurrentDate
)
);
<?php
global $post;
$get_posts = tribe_get_events(array('posts_per_page'=>-1, 'eventDisplay'=>'past') );
foreach($get_posts as $post) { setup_postdata($post);
?>
<?php if ( has_post_thumbnail() ) { ?>
<?php
global $post;
$current_date = date('j M Y');
$end_date = date('j M Y', strtotime('1 month'));
echo 'Start Date:'. $current_date;
echo 'End Date:'. $end_date;
$all_events = tribe_get_events(
array(