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
/* No Ads */ | |
.rightColumnWrapper #pagelet_ego_pane { | |
display: none; | |
} |
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 | |
// Customize the loop on your home page only | |
function jeherve_custom_home_query( $query ) { | |
if ( ! $query->is_main_query() ) | |
return; | |
if ( ! $query->is_home() || ! $query->is_front_page() || is_admin() ) | |
return; | |
$query->set( 'ignore_sticky_posts', true ); |
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 | |
/* | |
* Plugin Name: Check Jetpack's Tonesque | |
* Plugin URI: http://wordpress.org/extend/plugins/jetpack/ | |
* Description: Check if the Tonesque file is readable | |
* Author: Jeremy Herve | |
* Version: 1.0 | |
* Author URI: http://jeremyherve.com | |
* License: GPL2+ | |
*/ |
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 | |
function jeherve_custom_related( $atts ) { | |
$posts_titles = array(); | |
if ( class_exists( 'Jetpack_RelatedPosts' ) && method_exists( 'Jetpack_RelatedPosts', 'init_raw' ) ) { | |
$related = Jetpack_RelatedPosts::init_raw() | |
->set_query_name( 'jeherve-shortcode' ) // Optional, name can be anything | |
->get_for_post_id( | |
get_the_ID(), | |
array( 'size' => 3 ) |
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 | |
/* | |
* Plugin Name: Disable Jetpack Open Graph tags and Twitter Cards | |
* Plugin URI: http://wordpress.org/extend/plugins/jetpack/ | |
* Description: Disables Jetpack Open Graph tags | |
* Author: Jeremy Herve | |
* Version: 1.0 | |
* Author URI: http://jeremyherve.com | |
* License: GPL2+ | |
*/ |
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
grep -o -r apply_filters * | wc -l |
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
.mobile-theme .hentry, | |
.mobile-theme .no-results { | |
clear: none; | |
} |
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 | |
// Create our custom Publicize message | |
function jeherve_cust_pub_message() { | |
$post = get_post(); | |
// Grab the first category of your post | |
if ( !empty( $post ) ) | |
$categories = get_the_category( $post->ID ); |
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 | |
/* | |
Plugin Name: Moar snow! | |
Plugin URI: http://wordpress.org/plugins/jetpack/ | |
Description: Force the display of Jetpack's snow on your site, even outside of the holiday season | |
Author: Jeremy Herve | |
Author URI: http://jeremyherve.com | |
Version: 1.0 | |
*/ |
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 | |
// Get the number of subscribers on your site | |
function jeherve_sub_count() { | |
if ( class_exists( 'Jetpack_Subscriptions_Widget' ) ) { | |
$subcount = Jetpack_Subscriptions_Widget::fetch_subscriber_count(); | |
echo $subcount['value']; | |
} | |
} |