So I have some text in my database that is reading like so:
This is my very first blog post, <b>Ever!</b>
<rm>
This content is after the rm and should not be seen on the home page. That would just make for too much info on the front home page. Don't you agree?
Right now this text is lying, how can I make the echo stop at the made up tag?
I want it to stop at This is my very first blog post, <b>Ever!</b>
or at the tag.
I have the following code
<?php if($posts): ?>
<?php foreach($posts as $post): ?>
<h3><a href="/post/<?php echo $post->id; ?>"><?php echo $post->title; ?></a></h3>
<span><?php echo $post->body; ?><span>
<hr/>
<?php endforeach; ?>
<?php else: ?>
<p>No Recent Posts</p>
<?php endif; ?>
Thanks!