Skip to content

Instantly share code, notes, and snippets.

View JakeGonzales's full-sized avatar

Jake Gonzales JakeGonzales

View GitHub Profile
@forgeandsmith
forgeandsmith / Gravity Forms Reset Styles
Last active June 22, 2021 07:33
Gravity Forms SCSS reset styles for easy style editing and management
///////////////////////////////////////////////
////// GRAVITY FORMS RESET STYLES //////
///////////////////////////////////////////////
// These styles are made in mind to be used with SCSS or LESS
// If you use these styles, you must go to the Gravity Forms settings in the WordPress back end and set Output CSS to No.
////----- Core Containers
.gform_heading,
.gform_body,
@ChrisLTD
ChrisLTD / gist:5877800
Created June 27, 2013 16:11
Loop through all custom taxonomy terms for a post type
<?php
$post_type = 'post';
// Get all the taxonomies for this post type
$taxonomies = get_object_taxonomies( (object) array( 'post_type' => $post_type ) );
foreach( $taxonomies as $taxonomy ){
// Gets every "category" (term) in this taxonomy to get the respective posts
$terms = get_terms( $taxonomy );
foreach( $terms as $term ){
echo $term->name;
}
@tinotriste
tinotriste / breadcrumbs-functions.php
Last active April 20, 2024 05:36
Wordpress: Breadcrumbs function
<?php
/*=============================================
= BREADCRUMBS =
=============================================*/
// to include in functions.php
function the_breadcrumb() {
$sep = ' > ';
@traeblain
traeblain / tmb-wpmu-nag-remove.php
Created July 20, 2011 04:26
Remove WPMU's Horribly Useless Notification Plugin Nag
<?php
/*
Plugin Name: Remove WPMU Notification Plugin Nag
Plugin URI: http://wp.me/p1Aj2B-6g
Description: WPMU started trying to force people that use plugins by their developers to install a Notification plugin by making a persistent notification bug the admins. This removes that annoying piece.
Version: 1.2
Author: Trae Blain
Author URI: http://traeblain.com
License: GPL2
*/