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

Home Forums CSS WordPress search output. Re: WordPress search output.


That should work yep, but I’d move the closing to before the last endif, as at the moment it’s within the if statement which is checking whether it’s an archive or search. If it isn’t one of those 2 then it wouldn’t close the div. Give it a go and then view your source and see whether it successfully wraps a div with a unique class around each post.