• Resolved wp99

    (@wp99)


    Hello,

    Nice plugin, but not totally working properly.

    When you add filters (to disable tease or to force fullpost), only the first category in the comma separated list works. The second category does not.

    Also if you check the box “disable tease for categories and/or tags…” (just underneath), the categories filter works, but now all other categories no longer tease and are written as fullposts.

    Also, being paragraph aware is not a good idea. When I get a post that has a paragraph that is 500 words long (yes I do get them), then the software will include the full 500 words, even after I had set it to 130 words.

    It would be a better idea to make it ‘sentence aware’, that way, posts will be teased up to the word count specified and to the nearest sentence, rather then nearest paragraph.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author weyhan

    (@weyhan)

    Hi wp99,

    The filter list is a straight pass through to WordPress test function. It looks like the WordPress function is not working properly.

    For the “disable tease for categories and/or tags” is suppose to work that way. Unless I misunderstand what you mean by all other categories no longer tease. Please give more information about this issue you are complaining. Posting your settings will help.

    For support for “sentence aware” tease, there is no good way to do that because paragraph break is a html tag but sentence can end in a few ways. Also the period does not always marks a sentence break. For example think of the salutation “Mr.” or “Dr.” etc.

    Besides, many users are complaining about the long processing time in Post Teaser. Adding more complicated process would just make a lot of users unhappy.

    Hope that helps.

    –Han.

    Thread Starter wp99

    (@wp99)

    Hello Han,

    Thanks for the quick response.

    Unfortunately, I had overwritten my database by mistake, and had to reconstruct my site, and the funny thing is, now when you add filters (to disable tease or to force fullpost), it works fine! Must have been another plugin conflict. Strange how things work.

    As for the ‘sentence aware’ thing, I have made a small modification by adding the following line to the file: ‘post-teaser.php'(around line 1038), just after the line that reads:
    “if (!$more && !$showall) {“

    Add:

    // Swapped paragraphs for sentences, so that for long paragraphs, the excerpt is closer to the word count and breaks at the nearest sentence, rather than to the nearest long paragraph.
    $content = str_replace(‘. ‘, ‘.</p>’, $content);

    Just make sure, that in your setting, you put the word length to at least 80, or what ever you think the longest sentence length could possibly be.

    Now the ‘…READ MORE’ tag will break after the sentence closest to your word count. Yes, I know that ‘Dr.’ and ‘Mr.’ will trigger this, but this is rare, and at least you don’t split up a word.

    Some people send posts that have no paragraphs! – 400 words long!, like in auto-blogs. Now you will not post this long paragraph in the excerpt and rune your nice look.

    Hope that helps someone.

    Thread Starter wp99

    (@wp99)

    Yes, double checked again. Two bugs:

    When there are two or more categories separated by commas in the filtering fields, only the first category works, and the second category, after the comma, has no effect, as if it was not entered in the field.

    Also, when you add this second category after the comma, all other categories, not in the filter, will automatically un-tease.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Tease filters not working, need sentance aware – not page’ is closed to new replies.