Forum Replies Created
-
AuthorPosts
-
May 16, 2014 at 1:39 pm in reply to: Lifestyle Pro: Excerpt Limit in Featured Post and Page Widget not limiting #105543snohoboMember
Totally nailed it, thanks so much!
May 16, 2014 at 1:30 pm in reply to: Lifestyle Pro: Excerpt Limit in Featured Post and Page Widget not limiting #105539snohoboMemberThis is great. Just what I needed and thank you so much for your speediness.
The only thing that would make this 100% is if the code could add [...] at the end of the last word before displaying the [more] link.
That would top it off but I'm very happy with the solution, super clean.
Ps. Not sure why you weren't able to post it either...I did receive a 'test' message from you but you must have removed it by the time I logged in.
May 16, 2014 at 12:17 pm in reply to: Lifestyle Pro: Excerpt Limit in Featured Post and Page Widget not limiting #105519snohoboMemberAllow me to be a bit more specific. I would like to limit the excerpt to a certain word length and to add [...] at the end of that word with a link to [more...] to link to the specific post.
I was able to find this code which adds the [more] link but haven't found a workaround for limiting the amount of text in the manual excerpt.
// Changing excerpt more - only works where excerpt IS hand-crafted
add_filter('get_the_excerpt', 'manual_excerpt_more');
function manual_excerpt_more($excerpt) {
$excerpt_more = '';
if( has_excerpt() ) {I also understand that I could simply manually limit my excerpts to a certain character length but this would save me lots of time as I don't know another way to have exactly (or close enough to) 100 characters to display without manually counting them...
-
AuthorPosts