Title: read more button always there
Last modified: August 21, 2016

---

# read more button always there

 *  [corinna micori](https://wordpress.org/support/users/micori/)
 * (@micori)
 * [13 years ago](https://wordpress.org/support/topic/read-more-button-always-there/)
 * sometimes my posts are very short even shoret then the expert so the read more
   button doesnt make any sense. i tried several solution but nothing is workin 
   will this be fixed? or is there some code snipplet to fix it thanks so much for
   the help [http://alternation.at](http://alternation.at)
 * [http://wordpress.org/extend/plugins/advanced-excerpt/](http://wordpress.org/extend/plugins/advanced-excerpt/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [officeninjas](https://wordpress.org/support/users/officeninjas/)
 * (@officeninjas)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/read-more-button-always-there/#post-3688333)
 * I have the exact same issue and found out that the code never checks for this
   case. Not sure if a fix is coming, so I added these few lines of code to advanced-
   excerpt.php.
 * diff advanced-excerpt.mine.php advanced-excerpt.orig.php
    150,151d149 < $orig_text
   = $text; < 155,159d152 < if (is_string($orig_text) && is_string($text) && < (
   strlen(trim($orig_text)) == strlen($text))) { < return $orig_text; < } <
 *  [helmutmoortgat](https://wordpress.org/support/users/helmutmoortgat/)
 * (@helmutmoortgat)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/read-more-button-always-there/#post-3688336)
 * Officeninjas, where in advanced-excerpt.php do i have to place the code? I am
   new to php.
 * thanks!
 *  [isensmith](https://wordpress.org/support/users/isensmith/)
 * (@isensmith)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/read-more-button-always-there/#post-3688349)
 * same, i’m ok with putting code in my files, but the formatting on the code you’ve
   provided is confusing. the “<” dont look like normal php. is the forum reformatting
   your fix? id really really like to incorporate this if you can clarify that would
   be great!
 *  [jmfinn9](https://wordpress.org/support/users/jmfinn9/)
 * (@jmfinn9)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/read-more-button-always-there/#post-3688351)
 * the “<” are from the “diff” command showing that those lines are in his version
   of the file but not in the original. Basically he added at line 150:
 * $orig_text = $text;
 * which saves the original text
 * and then starting at line 155 he inserted:
 *  if (is_string($orig_text) && is_string($text) &&
    (strlen(trim($orig_text)) 
   == strlen($text))) { return $orig_text; }
 * So if the original text and the modified text are the same length, just return.
   Otherwise it continues on to the next line which is the one that adds the “Read
   More” link.
 *  [hansfn](https://wordpress.org/support/users/hansfn/)
 * (@hansfn)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/read-more-button-always-there/#post-3688352)
 * This bug is still present in version 4.1.1 of the plugin. I have updated the 
   diff/patch – see [http://pastebin.ca/2459294](http://pastebin.ca/2459294)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘read more button always there’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-excerpt_ae8159.svg)
 * [Advanced Excerpt](https://wordpress.org/plugins/advanced-excerpt/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-excerpt/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-excerpt/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-excerpt/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-excerpt/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-excerpt/reviews/)

## Tags

 * [Exerpt](https://wordpress.org/support/topic-tag/exerpt/)

 * 5 replies
 * 6 participants
 * Last reply from: [hansfn](https://wordpress.org/support/users/hansfn/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/read-more-button-always-there/#post-3688352)
 * Status: not resolved