开发者 | weyhan |
---|---|
更新时间 | 2015年10月2日 02:10 |
捐献地址: | 去捐款 |
PHP版本: | 2.6 及以上 |
WordPress版本: | 4.3.1 |
<!--more-->
into your postspost-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 version 3.11.3. The post-teaser.php
file is no longer restricted to the root of the plugins directory .../wp-content/plugins/
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).Settings > Post Teaser
(for version before 2.6 Options > Post Teaser
) in your WordPress admin panel.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.
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 <!--more-->
tag.
There are two reasons why Post Teaser seems to have failed to split a post:
<!--more-->
to force a split.<p>
tag as the paragraph marker, the <br />
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 <br />
tags with the proper <p>...</p>
paragraph marker pair.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 <?php ... ?>
block. Removing any excess characters will solve the problem.
PostTeaser is always tested against the latest WordPress version prior to release. However, it is impossible to test PostTeaser with all the plugins, widget, themes and what ever modification you have made for your blog. Most of the time when PostTeaser crashes a blog or causes some strange effects it is due to incompatibility in your environment (plugins, widget, themes, and etc). If you encounter some unexplained issue seemingly associated with PostTeaser, you are welcome to report it to me but to speed up the process of getting your issue resolved, please perform the following diagnostic steps to first determine what is the source of the problem. Prior to executing the diagnostic steps, please setup your environment so that you will start the diagnostic with basic configuration:
The teaser text is placed inside a block level <div>
element with a class of "post-teaser-block". 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-block {
font-weight: bold;
}
.post-teaser-more {
font-weight: bold;
}
You have two options here:
You can use the the filters under the "Advance tease control" section to control on which archive page Post Teaser will not tease.
<!--more-->
is use in the post or the_excerpt is used in your theme, the post will be teased according to WordPress's post tease feature)Yes. You just write <!--more-->
where you want it to be teasered, in the "traditional" WordPress style, and Post Teaser will do the rest.
Absolutely. Please use the contact form on my website, and I will get back to you as soon as I can.
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 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:
NOTICE: If you have translate for Post Teaser and have a couple of hours free, please help update the language files. Thanks. Of course! It will be very gratefully received. Please read Translating WordPress first for background information on translating. Then obtain the latest .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!