Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Geisler paulgeisler

  • Digital Mobility Solutions GmbH
  • Aachen, Germany
View GitHub Profile
View acf_create_posts_acf_form.php
<?php
/**
* Template Name: Create Post
*
* @author Mike Hemberger
* @link http://thestizmedia.com/front-end-posting-with-acf-pro/
* @uses Advanced Custom Fields Pro
*/
/**
View gist:7892132
<?php
/**
* Customize Event Query using Post Meta
*
* @author Bill Erickson
* @link http://www.billerickson.net/customize-the-wordpress-query/
* @param object $query data
*
*/
View better-prev-next-links.php
View todays-events.php
<?php
global $post;
$CurrentDate = date('Y-m-d');
echo $CurrentDate;
$events_today = tribe_get_events(
array(
'start_date'=>$CurrentDate,
'end_date'=>$CurrentDate
)
);
View custom-past-events.php
<?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() ) { ?>
View custom-one-month.php
<?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(