A Pen by Chris Robinson on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Check if post has more than one image attached | |
* | |
* @author Chris Robinson | |
* @link http://contempographicdesign.com | |
*/ | |
$attachments = get_children( | |
array( | |
'post_type' => 'attachment', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); |
A Pen by Chris Robinson on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'woocommerce_after_shop_loop_item_title', array( WC_Wishlists_Plugin, 'add_to_wishlist_button' ), 10 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); |
OlderNewer