CMS & WordPress
Hi. Does anyone know how to make an advert appear in the middle of content, but only when the post is a certain length? E.G. if a post is only 100 words long, there isn't enough room for an advert, but there would be room if it's 500 words, for example.
Any ideas? thanks!
Retrieve the content of the post/page, and use the standard PHP function to count the words.
Then modify and echo the content as appropriate to display the content and your ad(s).
This topic is now closed. New replies are no longer allowed.