Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Template Name: Testimonial Archives
* Description: Used as a page template to show page contents, followed by a
* loop through a CPT archive
*/
/** Remove Post Info */
remove_action('genesis_before_post_content','genesis_post_info');
@robneu
robneu / gist:5305057
Last active December 15, 2015 18:39
<?php
function example_image_widget_output( $output, $args, $instance, $id_base ) {
$link_open = '';
$link_close = '';
if ( ! empty ( $instance['link'] ) ) {
$target = ( empty( $instance['new_window'] ) ) ? '' : ' target="_blank"';
$link_open = '<a href="' . esc_url( $instance['link'] ) . '"' . $target . '>';
$link_close = '</a>';
}
jQuery(document).ready(function($) {
$.fn.cleardefault = function() {
return this.focus(function() {
if( this.value == this.defaultValue ) {
this.value = "";
}
}).blur(function() {
if( !this.value.length ) {
this.value = this.defaultValue;
<?php
/**
* Change the post order for listings
*
* @author Carrie Dils
* @link http://www.billerickson.net/customize-the-wordpress-query/
* @reference http://codex.wordpress.org/Class_Reference/WP_Query
*
*/
@robneu
robneu / gist:5937747
Last active December 19, 2015 10:08 — forked from cdils/gist:5430275
<?php
/************************************************
* This is not currently working.
************************************************/
add_action( 'pre_get_posts', 'cd_listing_sort_order' );
/**
* Change the post order for listings
*
* @author Carrie Dils
* @link http://www.billerickson.net/customize-the-wordpress-query/

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@robneu
robneu / wordpress-typekit-enqueue.php
Last active January 17, 2023 23:04 — forked from FernE97/typekit-enqueue.php
Enqueue typekit fonts to WordPress using wp_enqueue_scripts.
<?php
/**
* Enqueue typekit fonts into WordPress using wp_enqueue_scripts.
*
* @author Robert Neu
* @author Eric Fernandez
* @copyright Copyright (c) 2014, Robert Neu
* @license GPL-2.0+
* @link http://typekit.com
*/
@robneu
robneu / full-content-archives-genesis.php
Last active December 24, 2015 18:29 — forked from srikat/functions.php
Conditionally display the full content on specific categories using the Genesis Framework.
<?php
add_action( 'genesis_before_loop', 'prefix_full_content_specific_categories' );
/**
* Filter the output of specific categories so that they display the full
* content regarldess of what's selected in the Genesis theme options panel.
*
* @author FAT Media <http://youneedfat.com>
* @copyright Copyright (c) 2013, FAT Media, LLC
* @license GPL-2.0+
* @uses is_category <http://codex.wordpress.org/Function_Reference/is_category>
<?php
/**
* Template Name: FitFluential Finds Archives
* Description: This is a page template to show the FitFluential Finds CPT
*
* @package FitFluential
* @subpackage Genesis
* @copyright Copyright (c) 2013, WP SIte Care, LLC
* @license GPL-2.0+
* @since 1.0.0
<?php
/**
* Functions
*
* @package BE_Genesis_Child
* @since 1.0.0
* @link https://github.com/billerickson/BE-Genesis-Child
* @author Bill Erickson <bill@billerickson.net>
* @copyright Copyright (c) 2011, Bill Erickson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License