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
//dequeue css from plugins | |
add_action('wp_print_styles', 'inbound_dequeue_css', 100); | |
function inbound_dequeue_css() { | |
wp_dequeue_style( 'inbound-shortcodes' ); | |
} |
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
/* Add to functions.php file. Refresh wordpress admin, then remove this code */ | |
// OR run /wp-admin/?clear_lead_custom_field_cache=1 and it will flush the cache | |
add_action('init', 'manual_flush_inbound_form_map_transient') | |
if (!function_exists('manual_flush_inbound_form_map_transient')) { | |
// Refresh transient | |
function manual_flush_inbound_form_map_transient(){ | |
delete_transient('wp-lead-fields'); | |
} | |
} |
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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/query.php | |
*/ | |
$args = array( |
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 | |
/** | |
* Using transients on a single loop inside WordPress | |
* | |
* @link http://speckyboy.com/2011/12/14/website-speed-part-3-caching-wordpress/ | |
* / | |
$loop = get_transient( 'loop' ); | |
if ( false === $loop ) { | |
// Show the last 100 tweets from the custom post type tweets. |
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
/** Add jquery script for responsive slider | |
This is for use with a child theme! | |
If not use: get_template_directory_uri() instead | |
*/ | |
function fws_add_the_scripts() { | |
wp_enqueue_script( | |
'custom_script', | |
get_stylesheet_directory_uri() . '/js/responsiveslides.min.js', | |
array('jquery') | |
); |
NewerOlder