Post excerpt and videos
-
I have posts that are text and some that are embed YT video links. For the video posts I show the_content(). For text posts, I use
echo wp_trim_words(get_the_content(), 50, '')
If I do this with the video posts, it just shows the video link.The archive page with both types of posts has the complete text for each post. Is there a way that I can use
echo wp_trim_words(get_the_content(), 50, '')
on the archive page with out messing up the video post?[ redundant link removed ]
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Post excerpt and videos’ is closed to new replies.