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: Shortlink All the Things | |
Description: Enables shortlinks for all custom post types. | |
Author: Stephanie Leary | |
Version: 1.0 | |
Author URI: http://stephanieleary.com | |
*/ | |
function shortlink_all_post_types($id = 0, $context = 'post', $allow_slugs = 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: Unpublished Hierarchies | |
Description: A tiny plugin to allow draft, private, scheduled, and password-protected pages to be selected as parents. | |
Author: Stephanie Leary | |
Version: 1.0 | |
Author URI: http://stephanieleary.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
#post-1110 .wp-caption.alignleft { margin-right: 68px; } | |
#post-1110 .wp-caption.alignleft:nth-child(3n) { margin-right: 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
<? | |
/* | |
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
<?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
<?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 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 | |
// * 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) |