i’m trying to display archive loops that display the full content of the post up until the more tag (if it exists) and if a more tag does not exist, it displays the excerpt.
i found this conditional :
if ($pos=strpos($post->post_content, ‘<!–more–>’)):
but when i do a print_r to dump the values of the $post object in the loop i can see that “<!–more–>” is never in the post_content even though i’ve added the more tag in the backend. in fact, i don’t see anything in the post_content pertaining to the more tag that i could test for. hence, the above conditional always comes back false.
is the more tag behaving differently in 3.1? at what point and where can i test for its presence?
- The topic ‘Excerpt if there is no more tag? REVISTED’ is closed to new replies.