Check if post was split
-
Hi,
I was wondering if that’s the only way to check if post has been split using <!–more–> tag to display image.
<?php if(strpos($post->post_content, '<!--more-->')) { ?> <img src="https://google.com/image.jpg" alt="" /> <?php } ?>
?? Maybe there’s other way ?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Check if post was split’ is closed to new replies.