Skip to content

Instantly share code, notes, and snippets.

Geekup with Geekettes

##Prerequisites

  1. Install Sublime Text 2 (any decent text editor will do)

##Setup Steps

  1. Fork the GitHub Repo onto your GitHub account. (Icon at the top of the screen)
  2. Open a command prompt
@relish27
relish27 / list_and_single.php
Last active December 16, 2015 09:39
Here are some changes to the list.php and single.php templates in order to display just one date and the time range.
<?php
/*
////////////// SNIPPET FROM LIST.PHP
In the conditional below, I removed " || !tribe_get_all_day() ". Both of the conditionals were returning nothing,
so the second one ("not true") was catching my event. My event has the same dates, but different times.
*/
?>
<?php if (tribe_is_multiday()): ?>
<tr>
@relish27
relish27 / advanced_query_snippet.php
Last active December 15, 2015 09:19
The snippet below shows how the $args are gathered for an advanced search. The Instrument and Doctype items are checkboxes -- meaning that if multiple items of each are checked, the request object returns a comma-delimited list of IDs. The issue is that whatever I put into $args['category__and'] (and I've tried here just using $args['cat'], too)…
<?php
// Check if results should be filtered
$search_filter = $_REQUEST["search_filter"];
$search_keyword = $_REQUEST["search_keyword"];
$search_instrument = $_REQUEST["search_instrument"];
$search_doctype = $_REQUEST["search_doctype"];
echo "<br />search_filter: " . $search_filter;
echo "<br />search_keyword: " . $search_keyword;
echo "<br />search_instrument: " . $search_instrument;