This file contains 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
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
This file contains 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
<!-- Replace default Contact Us url in HelpScout Docs with custom url and add a My Account link to the top menu --> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script> | |
$(function() { | |
$("#contact a,#sbContact,#sbContactMobile, #contactMobile a").attr("href", "https://app.sellwp.co/seedprod/ticket").text('Open a Ticket'); | |
$( "#mainNav .nav" ).append( "<li><a href='http://www.seedprod.com/members'>My Account</a></li>" ); | |
}); | |
</script> | |
<!-- SeedProd.com custom styles --> |
This file contains 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 | |
/** | |
* Insert an attachment from a URL address. | |
* | |
* @param string $url The URL address. | |
* @param int|null $parent_post_id The parent post ID (Optional). | |
* @return int|false The attachment ID on success. False on failure. | |
*/ | |
function wp_insert_attachment_from_url( $url, $parent_post_id = null ) { |
This file contains 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 | |
/** | |
* EA Genesis Child. | |
* | |
* @package EAGenesisChild | |
* @since 1.0.0 | |
* @copyright Copyright (c) 2014, Contributors to EA Genesis Child project | |
* @license GPL-2.0+ | |
*/ |
This file contains 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_filter( 'soliloquy_output_item_data', 'tgm_soliloquy_custom_image_link', 10, 3 ); | |
function tgm_soliloquy_custom_taxonomy_text( $item, $id, $data, $i ) { | |
// If not the slider you want to target, return. | |
if ( 324 !== $data['id'] ) { | |
return $item; | |
} | |
// Since this is a FC slider, $id will be the post ID for the item. |
This file contains 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 | |
// Repeater field called 'be_section' with 'title' and 'description' subfields | |
$sections = get_post_meta( get_the_ID(), 'be_section', true ); | |
for( $i = 0; $i < $sections; $i++ ) { | |
$title = esc_html( get_post_meta( get_the_ID(), 'be_section_' . $i . '_title', true ); | |
$description = get_post_meta( get_the_ID(), 'be_section_' . $i . '_description', true ); | |
echo '<div class="section"><h2>' . $title . '</h2>' . wpautop( $description ) . '</div>'; | |
} |
This file contains 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 | |
/* | |
Plugin Name: ACF Customizer Patch | |
Plugin URI: https://gist.github.com/fabrizim/9c0f36365f20705f7f73 | |
Description: A class to allow acf widget fields to be stored with normal widget settings and allow for use in customizer. | |
Author: Mark Fabrizio | |
Version: 1.0 | |
Author URI: http://owlwatch.com/ | |
*/ | |
class acf_customizer_patch |
This file contains 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 | |
// put this in your functions.php | |
add_filter('pre_user_query', function(&$query) { | |
if($query->query_vars["orderby"] == 'rand') { | |
$query->query_orderby = 'ORDER by RAND()'; | |
} | |
}); | |
// Query will look like this: | |
$args = array('orderby' => 'rand', 'number' => 5); |
This file contains 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 | |
/* | |
Plugin Name: Easy Digital Downloads - Auto Register - Extend | |
Plugin URI: http://sumobi.com/shop/edd-auto-register/ | |
Description: Extends the functionality of Auto Register | |
Version: 1.0 | |
Author: Andrew Munro, Sumobi | |
Author URI: http://sumobi.com/ | |
License: GPL-2.0+ | |
License URI: http://www.opensource.org/licenses/gpl-license.php |
This file contains 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_filter( 'tgmsp_dynamic_individual_slide', 'tgm_soliloquy_add_custom_slides', 10, 4 ); | |
function tgm_soliloquy_add_custom_slides( $slider, $id, $image, $i ) { | |
// Append custom slides to the end of the slider. | |
if ( ($i-1) == count( get_children( array( 'post_parent' => $id ) ) ) ) : | |
// If you want more than one image, just copy and paste the code below as many times as you need. | |
$slider .= '<li class="soliloquy-item">'; | |
$slider .= '<img class="soliloquy-item-image" src="http://cdn.soliloquywp.com/wp-content/uploads/2012/02/fast.jpg" title="your image title" alt="your alt text" />'; | |
$slider .= '<div class="soliloquy-caption">'; |