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
See: https://gist.github.com/56edda993e0b7062c7af |
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
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<header class="entry-header clearfix"> | |
<h1 class="entry-title"><?php echo single_term_title(); ?></h1> | |
</header><!-- .entry-header --> | |
<?php | |
$term_description = term_description(); | |
if( $term_description ) : ?> | |
<div class="entry-content post-content"> |
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 | |
/** | |
* replace one of the widget image sizes | |
* | |
* examples replaces the banner layout's image with the 'large' size image from Settings > Media | |
* | |
* If you replacing $size with a custom image size, you must register that separately with add_image_size() | |
* | |
* @param $size string slug of registered image size | |
* @return string|array slug of registered image size or "array( width, height )" (not recommended) |
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 a post type that can be featured in the Feature a Page Widget | |
* | |
* Any post types added via this filter automatically have support added for excerpts and featured images | |
* | |
* This example adds the ability to feature the "book" post type | |
* | |
* @param $post_types array array of post_type slugs that can be featured with the widget | |
*/ |
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 | |
/** | |
* remove a default template | |
* | |
* default templates are: big, banner, wrapped | |
* | |
* this example removes the "Big Image" template | |
* | |
* @param $templates array slug => label pairs of templates | |
*/ |
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 | |
/** | |
* Set fpw_auto_excerpt to TRUE to allow auto-generated excerpts if the Excerpt field is blank | |
* | |
* Uses the_excerpt() and associated filters. | |
*/ | |
add_filter( 'fpw_auto_excerpt', '__return_true' ); |
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 | |
remove_filter('tribe_events_single_event_after_the_content', array('TribeiCal', 'single_event_links'), 10, 1); | |
add_filter( 'tribe_events_single_event_after_the_meta', array('TribeiCal', 'single_event_links'), 10, 1); |
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
// prefill user first & last names on funding application "Volunteer Name" field | |
add_filter( 'gform_field_value_PREFIX_fn', 'mrw_user_first_name' ); | |
add_filter( 'gform_field_value_PREFIX_ln', 'mrw_user_last_name' ); | |
function mrw_user_first_name( $value ) { | |
$user = get_user_by( 'id', get_current_user_id() ); | |
if( !is_wp_error( $user ) ) { | |
$value = $user->user_firstname; | |
} | |
return $value; | |
} |
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
<p> | |
• First bullet<br> | |
• Second bullet. This one is really long and probably wraps and you’ll see why that’s important in a moment, but I just have to make sure that this line is really extra long to ensure that it wraps. There. I think that’s enough. Hopefully. Now. Stopping here for real this time.<br> | |
• Third bullet | |
</p> |
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
<ul> | |
<li>First bullet</li> | |
<li>Second bullet. This one is really long and probably wraps and you’ll see why that’s important in a moment, but I just have to make sure that this line is really extra long to ensure that it wraps. There. I think that’s enough. Hopefully. Now. Stopping here for real this time.</li> | |
<li>Third bullet</li> | |
</ul> |
OlderNewer