Check for more tag
-
I want to check if a post contains the <!– more –> tag. At the moment I’m using a quite dissatisfying solution:
if (strpos(get_the_content('^&^&'), '^&^&') > 0)
since I have to retrieve the post from the DB again. Isn’t there any function or global variable indicating that the post uses the more tag?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Check for more tag’ is closed to new replies.