Skip to content

Instantly share code, notes, and snippets.

View contempoinc's full-sized avatar

Chris Robinson contempoinc

View GitHub Profile
@contempoinc
contempoinc / check-post-image.php
Created October 6, 2011 16:14
Check if post has more than one image attached in WordPress
<?php
/**
* Check if post has more than one image attached
*
* @author Chris Robinson
* @link http://contempographicdesign.com
*/
$attachments = get_children(
array(
'post_type' => 'attachment',
@contempoinc
contempoinc / output-term-slugs.php
Created October 6, 2011 21:59
Output all term slugs for a particular post type in WordPress
<?php
/**
* Output all term slugs for a particular post type
*
* @author Chris Robinson
* @link http://contempographicdesign.com
*/
function ct_terms() {
if(is_post_type_archive('portfolio')) {
$terms = get_the_terms( $post->id, 'portfolio_tags' );
<?php
if ( !class_exists( "ReduxFramework" ) ) {
return;
}
if ( !class_exists( "Redux_Framework__9a2bfceb1255a1560bdc6a3" ) ) {
class Redux_Framework__9a2bfceb1255a1560bdc6a3 {
public function __construct( ) {
// Your base config file for Redux
Object {readyState: 4, responseText: "<br />↵<b>Fatal error</b>: Call to private Browse…s.redux_helpers.php</b> on line <b>408</b><br />↵", status: 200, statusText: "OK"}abort: (a){var b=a||u;return i&&i.abort(b),x(0,b),this}always: (){return e.done(arguments).fail(arguments),this}complete: (){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}done: (){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}error: (){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}fail: (){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"
<?php
if ( !class_exists( "ReduxFramework" ) ) {
return;
}
if ( !class_exists( "Redux_Framework__9a2bfceb1255a17c81282ba" ) ) {
class Redux_Framework__9a2bfceb1255a17c81282ba {
public function __construct( ) {
// Your base config file for Redux
/**
* Main Navigation
*
* @package WP Day Spa
* @subpackage JavaScript
*/
(function(d) {
var c = d.document,
b = c.documentElement;
<?php
add_action( 'woocommerce_after_shop_loop_item_title', array( WC_Wishlists_Plugin, 'add_to_wishlist_button' ), 10 );
<?php
// Add to Wishlist on Shope Page
// Example: http://www.sagegoddess.com/shop/
add_action( 'woocommerce_after_shop_loop_item_title', array( WC_Wishlists_Plugin, 'add_to_wishlist_button' ), 10 );