diff --git a/README.md b/README.md index d2c2506..52a45c5 100644 --- a/README.md +++ b/README.md @@ -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; } diff --git a/readme.txt b/readme.txt index 9a5b396..570f09e 100644 --- a/readme.txt +++ b/readme.txt @@ -28,7 +28,9 @@ _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 and taxonomy pages. You may set the Default Featured Image under Appearance > Display Featured Image Settings. -= New: Add Your Featured Image to Your RSS Feed = +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 = Now you can add the Featured Image from each post to your RSS feed. This is an optional setting and applied intelligently: @@ -86,13 +88,21 @@ Yes! You'll want to add a filter to your theme (functions.php file). Here's an e 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: + + 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; + } + = The backstretch image is a little too tall. = If you do not want the height of the backstretch image to be quite the height of the user's window, you can reduce it by just a hair. Go to Appearance > Display Featured Image for Genesis Settings and change the 'Height' number from the default of 0. The higher this number is, the shorter your image will be. Feel free to experiment, as no images are harmed by changing this number. Additionally/alternatively, you could set a max-height for the backstretch image area via css: - .big-leader { max-height: 700px; } @@ -117,11 +127,16 @@ _Note:_ unless you check the option to __Move Excerpts/Archive Descriptions__, a 2. Set a Default Featured Image on the Appearance > Display Featured Image Settings page. == Upgrade Notice == -= 1.5.0 = -New feature! Add featured image to your RSS feed. += x.y.z = +New feature! Add featured images to taxonomies! == Changelog == += x.y.z = +* added featured images to taxonomies! +* added featured images to admin archive pages! +* added new setting to not move post titles to overlay Featured Image + = 1.5.0 = * added new setting to include Featured Image in RSS feeds * added fallback image output if js is disabled