Skip to content

Instantly share code, notes, and snippets.

View makeworthymedia's full-sized avatar

Makeworthy Media makeworthymedia

View GitHub Profile
@adrienne
adrienne / mullenweg-wpe.md
Last active May 12, 2025 16:34
The Mullenweg/WPE Thing
@ontiuk
ontiuk / wordpress_terms_clauses_sorting.txt
Created December 28, 2016 12:08
WordPress: Taxonomy Meta Sorting With Terms_Clauses Filter
add_filter( 'terms_clauses', 'filter_terms_clauses', 10, 3 );
/** 
* Filter WP_Term_Query meta query 
* @param   object  $query  WP_Term_Query 
* @return  object 
*/
function filter_terms_clauses( $pieces, $taxonomies, $args ) {
global $pagenow, $wpdb;    
@GaryJones
GaryJones / functions.php
Last active December 23, 2021 23:10
Wrap the last Genesis breadcrumb in a span for styling.
<?php
add_filter( 'genesis_build_crumbs', 'gj_wrap_last_breadcrumb', 10, 2 );
/**
* Wrap the last Genesis breadcrumb in a span for styling.
*
* @author Gary Jones
*
* @param array $crumbs Existing HTML markup for the breadcrumbs.
*