Skip to content

Instantly share code, notes, and snippets.

View willyfc's full-sized avatar

Willans Flores Casivanis willyfc

View GitHub Profile
<?php
$categories = get_the_category();
// Assemble a tree of category relationships
// Also re-key the category array for easier
// reference
$category_tree = array();
$keyed_categories = array();
<form id="search">
<input type="hidden" name="action" value="custom_search" />
<input type="text" id="texto" name="texto" />
<input type="submit" value="submit" />
</form>
<div id="answer"></div>
<script type="text/javascript">
jQuery(function($){
$("#search").submit(function(e){
if( $("#search").hasClass("sending") ) return false;