=== Plugin Name === Contributors: weyhan Donate link: http://sandboxblogger.com/ Tags: teaser, excerpt, preview, statistics, navigation, more Requires at least: 1.5 Tested up to: 2.7.1 Stable tag: 3.11.3 Post Teaser generates excerpts of posts for the main, archive and category pages, also generate a word count, image count, and estimated reading time. == Description == Post Teaser generates a preview or "teaser" of a post for the main, archive and category pages, with a link underneath to go to the full post page. It includes features to generate a word count, image count, and an estimated reading time. = Reasons you might want to use Post Teaser: = * You keep putting `` into your posts * You would like to save bandwidth by only having people view a full post if they actually want to read it * You just like the "teaser" format = What's new in this release: = * Fix a long standing issue where the save options will result in error although the options are saved. * Added Hebrew translation by Eyal Gursoy. Thanks Eyal Gursoy! * Misc fixes, code and documentation cleanup. = Contributors: = * [WeyHan Ng](http://sandboxblogger.com/ "SandboxBlogger.com") -- Maintainer * [Jonathan Leighton (Turnip)](http://turnipspatch.com "Turnip") -- Concept and programming * [eleZeta](http://ele-zeta.com.ar/ "eleZeta") -- Estimated reading time code was adapted from his plugin : ) **** NOTE: Use [contact form](http://sandboxblogger.com/contact/ "Contact me") for support request. = Translators: = * by_BY: * [Marcis Gasuns](http://ledleisten.com/ "Marcis Gasuns") * de_DE: * [Sören Weber](http://soeren-weber.net/ "Sören Weber") * el_GR: * [Alexander Kanakaris](http://www.tech-spot.gr/ "Alexander Kanakaris") * es_ES: * Francisco Barroso * fr_FR: * [David Martin](www.sushilabs.com/ "David Martin") * he_IL: * Eyal Gursoy * it_IT: * [Arturo Uggini](http://www.cerbero.eu/ "Arturo Uggini") * nb_NO: * Jørn Pedersen * nl_BE, nl_NL: * [Mathias Bynens](http://mathibus.com/ "Mathias Bynens") * pl_PL: * [Przemysław Naruszewicz](http://www.ikeris.com/ "Przemysław Naruszewicz") * sv_EU: * [Mansour Sarr](http://www.din-it-kunskap.com/ "Mansour Sarr") * sv_SE: * Fredrik Sandström == Installation == = Manual installation = 1. Download [Post Teaser](http://wordpress.org/extend/plugins/post-teaser "Post Teaser package") from wordpress.org Plugin Directory 1. Extract and upload the entire `post-teaser` directory as `.../wp-content/plugins/post-teaser` directory of your WordPress installation. *NOTE: The issue with location sensitive installation have since been fix in this version therefore there is there is no more restriction where in `.../wp-content/plugins/` you install Post Teaser* 1. Go to the Plugins configuration page in your WordPress admin panel, and enable Post Teaser = Auto installation (2.7.x and above) = 1. Click on the link `Plugin Browser/Installer` under the "Get More Plugins" section at the bottom of the Plugins page in your WordPress admin panel (Yes, this page is found in your blog's admin page). 1. Search for "post teaser" in Term. 1. Click on the install action on the right side of the table where Post Teaser is listed. 1. Follow WordPress instruction to complete the installation. = Configuration = Post Teaser does not need to be configured in order to work but some users understandably wish to change settings. That's easy too -- the dead simple configuration page can be found under `Settings > Post Teaser` (for version before 2.6 `Options > Post Teaser`) in your WordPress admin panel. == Frequently Asked Questions == = Do I really need this plugin? = No, of course not, but it makes a nice addition and some people find it easier to skim over previews to find something that interests them rather than to scroll down huge chunks of text. = Why Post Teaser fail to split some/all post on the front page? = Post Teaser is a paragraph aware teaser. Not only just aware, it will not break in the middle of a paragraph unless explicitly told to do so with the `` tag. There are two reasons why Post Teaser seems to have failed to split a post: 1. *The entire post is one long paragraph.* Well, as stated, Post Teaser is a paragraph aware teaser. Therefore will split single paragraph post at the end of the post because it also happens to be where the first paragraph break. To fix this problem, either split the post into shorter paragraph or add a `` to force a split. 1. *The post have multiple paragraph, however, instead of the `

` tag as the paragraph marker, the `
` tag was used to simply make text appear like paragraph.* It may read alright to us, those damn puters sees it as one long paragraph. Schematics, schematics. I tell you, it's a conspiracy! To fix this problem, replace those `
` tags with the proper `

...

` paragraph marker pair. = Help! I get an error that says "Warning: Cannot modify header information..." = This one is very common and applies to any WordPress plugin. There must not be any content in the plugin file other than PHP code. Sometimes if people have copied the code into their own file, rather than downloading it, they accidentally leave whitespace or other characters at the beginning or end of the file, outside of the `` block. Removing any excess characters will solve the problem. = How can I apply presentation to the teaser text? = The teaser text is placed inside a block level `
` element with a class of "post-teaser". This means that you can use CSS to style the teaser text. As an example, here's the CSS you'd use to make it bold: .post-teaser { font-weight: bold; } = What if I don't want a particular post to be teasered? = You have two options here: 1. Have Post Teaser ignore that post entirely 2. Have Post Teaser "display the post in full", and display the message that it did so (like what happens if you have a post that is too short to be teasered) Both of them work by using a custom field for you post. Here's how to do it: 1. Edit/Write your post in the WordPress admin panel 2. If you are not in the "Advanced" mode, then get into it by clicking the "Advanced Editing" button 3. At the bottom of the form, where it says "Custom Fields", write 'teaser' in the box labelled "Key" 4. Next, go to the "Value" box, and write 'disable' if you want Post Teaser to ignore the post entirely, or 'showall' if you want Post Teaser to return the post in full 5. Click "Add Custom Field" = Can I choose where a post is teasered, rather than having it calculated? = Yes. You just write `` where you want it to be teasered, in the "traditional" WordPress style, and Post Teaser will do the rest. = I've got a problem or question that isn't answered here. Can you help me please? = Absolutely. Please use the [contact form](http://sandboxblogger.com/contact/ "contact me") on my website, and I will get back to you as soon as I can. = Is this plugin available in other languages? = Yes. To use a translated version, you need to obtain the language file for it. At this point it would be useful to read [Installing WordPress in Your Language](http://codex.wordpress.org/Installing_WordPress_in_Your_Language "Installing WordPress in Your Language") from the Codex. You will need an .mo file for Post Teaser that corresponds with the "WPLANG" setting in your wp-config.php file. Translations are listed below -- if a translation for your language is available, all you need to do is place it in the wp-content/plugins directory of your WordPress installation. If one is not available, and you also speak good English, please consider doing a translation yourself (see the next question). The following translations are available: * Belorussian * [Belorussian (by_BY)](http://svn.wp-plugins.org/post-teaser/trunk/translations/by_BY/post-teaser-by_BY.mo "Belarus") * Dutch * [Belgium (nl_BE)](http://svn.wp-plugins.org/post-teaser/trunk/translations/nl_BE/post-teaser-nl_BE.mo "Belgium") * [Netherlands, The (nl_NL)](http://svn.wp-plugins.org/post-teaser/trunk/translations/nl_NL/post-teaser-nl_NL.mo "The Netherlands") * English * Great Britain (en_GB) -- This is the default language for Post Teaser * French * [France (fr_FR)](http://svn.wp-plugins.org/post-teaser/trunk/translations/fr_FR/post-teaser-fr_FR.mo "France") * German * [Germany (de_DE)](http://svn.wp-plugins.org/post-teaser/trunk/translations/de_DE/post-teaser-de_DE.mo "German") * Greek * [Greek (el_GR)](http://svn.wp-plugins.org/post-teaser/trunk/translations/el_GR/post-teaser-el_GR.mo "Greek") * Hebrew * [Israel (he_IL)](http://svn.wp-plugins.org/post-teaser/trunk/translations/he_IL/post-teaser-he_IL.mo "Israel") * Italian * [Italy (it_IT)](http://svn.wp-plugins.org/post-teaser/trunk/translations/it_IT/post-teaser-it_IT.mo "Italy") * Norwegian * [Norway (nb_NO)](http://svn.wp-plugins.org/post-teaser/trunk/translations/nb_NO/post-teaser-nb_NO.mo "Norwegian Bokmål") * Polish * [Poland (pl_PL)](http://svn.wp-plugins.org/post-teaser/trunk/translations/pl_PL/post-teaser-pl_PL.mo "Polish") * Spanish * [Spain (es_ES)](http://svn.wp-plugins.org/post-teaser/trunk/translations/es_ES/post-teaser-es_ES.mo "Spanish") * Swedish * [Sweden (sv_SE)](http://svn.wp-plugins.org/post-teaser/trunk/translations/sv_SE/post-teaser-sv_SE.mo "Swedish") * [European Union (sv_EU)](http://svn.wp-plugins.org/post-teaser/trunk/translations/sv_EU/post-teaser-sv_EU.mo "European Union") = Can I provide a translation? = Of course! It will be very gratefully received. Please read [Translating WordPress](http://codex.wordpress.org/Translating_WordPress "Translating WordPress") first for background information on translating. Then obtain the latest [.pot file](http://svn.wp-plugins.org/post-teaser/trunk/post-teaser.pot ".pot file") and translate it. *There are some strings with a space in front -- please make sure you remember the space!* When you have a translation ready, please send the .po and .mo files to han at sandboxblogger dot com. If you have any questions, feel free to email me also. Thanks!