update readme

This commit is contained in:
Robin Cornett
2015-01-03 11:57:21 -05:00
parent 3b5c5344fd
commit 3535e5a2de
2 changed files with 32 additions and 6 deletions
+13 -2
View File
@@ -20,7 +20,7 @@ _Note: although this plugin requires the [Genesis Framework by StudioPress](http
__Display Featured Image for Genesis__ now allows you to select a default, or fallback, Featured Image, which will be used if a post/page does not have a Featured Image set, or if the post/page's Featured Image is too small (smaller than your medium image setting), and on archive pages. You may set the Default Featured Image under Appearance > Display Featured Image Settings.
As of version x.y.z, you can now set a Featured Image for each taxonomy (categories, tags, and any taxonomy for custom post types). This image will be used on taxonomy archives, and as a fallback image for posts within that taxonomy if no featured image exists (or if the featured image is too small). If a post is assigned to multiple terms, the most used term will be the one used.
As of version x.y.z, you can now set a Featured Image for each taxonomy (categories, tags, and any taxonomy for custom post types). This image will be used on taxonomy archives, and as a fallback image for posts within that taxonomy if no featured image exists (or if the featured image is too small). If a post is assigned to multiple terms and has no featured image of its own, the most used term which has a featured image assigned will be the one used.
#### Add Your Featured Image to Your RSS Feed
@@ -113,7 +113,18 @@ Yes! You'll want to add a filter to your theme (functions.php file). Here's an e
```php
add_filter( 'display_featured_image_genesis_use_default', 'rgc_force_default_image' );
function rgc_force_default_image( $post_types ) {
$post_types[] = 'attorney';
$post_types[] = 'post';
return $post_types;
}
```
Alternatively, you can also set a specific post type to use the taxonomy featured image, if one exists, even if the post type has its own Featured Image. The filter is very similar:
```php
add_filter( 'display_featured_image_genesis_use_taxonomy', 'rgc_use_tax_image' );
function rgc_use_tax_image( $post_types ) {
$post_types[] = 'post';
return $post_types;
}