Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End How to achieve two different excerpt layouts on one WordPress site? Re: How to achieve two different excerpt layouts on one WordPress site?

#137486
croydon86
Participant

> You can remove the p tags in functions.php

Yes I already have this, it works half of the time, and in this particular case, it doesn’t, very annoying!


@JoshWhite
yes I thought about featured image but not sure how it would handle video. I don’t mind it not playing straight away, but would at least like to display the thumbnail, without much hassle of the client actually getting this thumbnail themselves from YouTube or whatever.

I have found a very good solution here for grabbing the image which requires no additional fields for the client in the admin and would work with existing posts… https://css-tricks.com/snippets/wordpress/get-the-first-image-from-a-post/

Just need to work out now how it can grab video then I’ll have this solved!