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
$('li.blurb').each(function(index) { | |
var chapters = $('dd.chapters', this).text(); | |
var done = chapters.split('/'); | |
if ( done[0] == 1 && done[1] == 1 ) { | |
$(this).css('display', 'none'); | |
} | |
else { | |
var words = $('dd.words', this).text(); | |
words = words.replace(',', ''); | |
words = parseInt(words, 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_filter( 'genesis_search_title_text', 'my_search_title_text' ); | |
function my_search_title_text( $title ) { | |
global $wp_query; | |
$start = ( ( $wp_query->paged - 1 ) * $wp_query->posts_per_page ) + 1; | |
$end = $wp_query->paged * $wp_query->posts_per_page; | |
return sprintf( '%s (%d—%d of %d)', $title, $start, $end, $wp_query->found_posts ); | |
} |
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 | |
// * Search & Filter Pro filters | |
// Limit taxonomy term dropdowns to terms associated with the form's specified post type(s) | |
// cf https://gist.github.com/rmorse/7b59b45a14b1ca179868#file-sf-pro-filter-input-object-php | |
function example_filter_input_object( $input_object, $sfid ) { | |
if ( ( !in_array( $input_object['name'], array( '_sft_one', '_sft_two', '_sft_three' ) ) ) ) | |
return $input_object; | |
// make sure the options variable actually exists (it's only available to certain field types) |
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_header(); ?> | |
<div id="container"> | |
<div id="content" role="main"> | |
<?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?> | |
<?php the_archive_description( '<div class="term-description">', '</div>' ); ?> | |
<?php | |
// Find out if this term has child terms | |
$object = get_queried_object(); | |
$termchildren = get_term_children( $object->term_id, $object->taxonomy ); |
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: Show MIMEs | |
Description: A tiny plugin to add more file type filters in the media library screens. | |
Author: Stephanie Leary | |
Version: 1.1 | |
Author URI: http://sillybean.net/ | |
*/ | |
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: LetterMo Post Types | |
Plugin URI: http://stephanieleary.com/ | |
Version: 1.6 | |
Author: Stephanie Leary | |
Author URI: http://stephanieleary.com/ | |
Description: Setting up the post types and achievements for Month of Letters. | |
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
<? | |
/* | |
Plugin Name: LetterMo Post Types | |
Plugin URI: http://stephanieleary.com/ | |
Version: 1.5 | |
Author: Stephanie Leary | |
Author URI: http://stephanieleary.com/ | |
Description: Setting up the post types and achievements for Month of Letters. | |
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
#post-1110 .wp-caption.alignleft { margin-right: 68px; } | |
#post-1110 .wp-caption.alignleft:nth-child(3n) { margin-right: 0; } |