[Theme: Amiable] Cannot Lengthen Excerpt Length
-
Hello! I’ve scoured the forums related to excerpts, but can’t find an answer. The theme I am using it “Amiable” by Sculpture Qode. The posts displaying on my home page are automatically truncated to 80 words, and HTML/pictures in the post will not display in this excerpt, even if they are present in the first 80 words. I would like the full post to display instead of just an excerpt. (Note: in settings, I have it set to “show full post.”)
I’ve read many tips in the forums to replace “the_except” with “the_content” in index.php, but that code isn’t there. I do see excerpt info under functions.php. Specifically, I find this:
/* Post Excerpt *********************************************************/ // Increase the word count of excerpts function sq_excerpt_length( $length ) { return 200; } add_filter( 'excerpt_length', 'sq_excerpt_length', 999 ); function sq_excerpt($excerpt_limit){ global $post; $excerpt = get_the_excerpt(); // Does the post have a manual excerpt if (!has_excerpt( $post->ID ) ) : $words = explode(' ', $excerpt, ($excerpt_limit + 1)); if(count($words) > $excerpt_limit) : array_pop($words); endif; return wpautop(implode(' ', $words) . '...'); else : return wpautop(get_the_excerpt()); endif; }When I decrease the “200” length near the top, I see it reflected on my website. However, when I increase “200,” I see no change. After all, 200 words won’t even display in the first place – it’s only 80.
Any idea how I can either make full posts display, or have much longer excerpts, that also display pictures and HTML? I have also tried to use a plugin to override the preview length this to no avail.
Thank you!!
The topic ‘[Theme: Amiable] Cannot Lengthen Excerpt Length’ is closed to new replies.