How do I get the content of an entire post besides the last line?
-
I have the following code to get the content of a post
<?php $my_postid = $post->ID; $content_post = get_post($my_postid); $content = $content_post->post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content; ?>
How do I leave out the last line in that post?
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How do I get the content of an entire post besides the last line?’ is closed to new replies.