alternative excerpt if doesn't have excerpt
-
I have this post template that starts with the regular “if have posts”
then displays different parts of the post (get title, get excerpt, get content…)
and in the place where it takes the excerpt I want to tell him:If there is a manual (inserted) excerpt, show it, and if not show the code that i will provide that uses some free text and some “get custom fields” in between the words.
How can I code that?
Thank’s!
- The topic ‘alternative excerpt if doesn't have excerpt’ is closed to new replies.