mikonmedia
Member
Posted 3 months ago #
I ma having an issue with my excerpts, and it cutting the URL out of the post itself when displayed. Once you go to the main single-post page though, the link shows.
Is there a way to fix this somehow? OR anyone run into the excerpt stripping URL's from blog posts?
Here is my code:
<?php the_post(); ?>
<div id="home-content-col2" class="grid_4">
<h2><a>'>
<?php the_title(); ?></a>
</h2>
<p><?php the_excerpt(); ?></p>
</div>
the_excerpt() automatically strips out all post formatting - including links. If that's not suitable for your needs, try replacing with with the_content().
mikonmedia
Member
Posted 3 months ago #
Ahh Yes, thanks Esmi.
I actually figured out my problem. I just had to add a separate excerpt text in the excerpt box for the post.
mikonmedia
Member
Posted 3 months ago #
'<?php the_post(); ?>
<div id="home-content-col2" class="grid_4">
<h2>'>
<?php the_title(); ?>
</h2>
<p><?php the_excerpt(); ?></p>
</div>'
A little messy pasting it in here, but it worked great!