find the number of chars in a post?
-
Hi there, I want to ad advertisements to posts on my wordpress blog, but only if they are on the index, and only if they are larger than a certain number of chars. What is the best way to do this?
currently I have this code:
<div class="entry"> <?php advman_ad('Medium Rectangle'); the_content('Read the rest of this entry »') ?> </div>
I have attempted to use PHP’s “strlen” on the_content, but it gave me a result of 0 and outputted the post twice.
Your help would be strongly appreciated.
Thanks in advance,
John.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘find the number of chars in a post?’ is closed to new replies.