=== Plugin Name === Contributors: kennylovrin, denodell Tags: pages, excerpts Requires at least: 2.7.1 Tested up to: 2.7.1 Stable tag: trunk Automatically and dynamically create excerpts with user defined length on any page, using the contets of the child pages. == Description == This plugin dynamically generates html paragraphs with excerpts from child pages. Put `[excerpts-from-children]` on any page and it will insert the excerpts from its child pages. In the subpages you want to extract the excerpts from, define the end of the excerpt by putting `` in the text. Use the custom field key "excerpts-from-children-thumb" with the value of an uploaded image ID to output thumbnail images for your excerpts. Add this custom field to your child page, and make sure you crop or resize it the way you want it before you upload. == Installation == 1. Upload `excerpts-from-children` to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. Place `[excerpts-from-children]` in the text of the page you want to use to display the excerpts (the parent page) 1. Put `` in the text area of the child pages, from which you want to extract the excerpt 1. To add a thumbnail, add a custom field to your child page. Enter "excerpts-from-children-thumb" as key, and an image ID as value. == Changelog == = 1.2 = 1. NEW Added basic support for thumbnails in excerpts. = 1.1 = 1. FIX 'read more' links so that they link from the domain root 1. FIX ordering of child pages so that order field of pages can be used 1. NEW wrap the read-more link in a paragraph tag = 1.0 = Initial release == The generated output == The structure of a generated excerpt looks like this: <div class="excerpts-from-children"> <img src="/link/to/image" title="Title of page thumnail" /> <h3>Title from the child page</h3> <p>Excerpt from the child page</p> <p class="read-more"><a href="/link/to/page">Read more »</a></p> </div> By using the CSS class "excerpts-from-children" you can style your excerpts. To get the image ID needed for the thumbnail, view the thumbnail in the admin interface and check "attachment_id=" in the URL query string. Note that the images doesn't use any scaling applied by Wordpress, so crop/resize them to the exact size you want for your excerpt!