Help with excerpt appreciated
-
I’m creating a theme, but I have a problem with excerpts, I was wondering if I could get some help?
The theme I’m creating has a Featured Post & a Recent Posts section on
index.php
. It has nothing to do with categories or most viewed posts or anything like that, it’s just different styling on the most recent/1st post while the 2nd & 3rd go under Recent Posts with their own styling.I’m using
improved_trim_excerpt
insidefunctions.php
to elongatethe_excerpt
to 90 words for the Featured Post & is working fine. (Note: it works in such a way that users don’t have to use the Excerpt box on the New Post page. It will automatically grab X number of words from the post & add the […] on the end.)Now, in the Recent Posts Section (the 2nd & 3rd most recent posts) I wanted them to only show about 40 words. Here in lies the problem. I tried using a modified
improved_trim_excerpt
& set it asimproved_trim_excerpt2
with no luck.I’m no expert on WP functions and could really use some help on this. If I need to provide more info, let me know.
- The topic ‘Help with excerpt appreciated’ is closed to new replies.