Forums

[resolved] the_excerpt and URL Mess (4 posts)

  1. 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>
  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 months ago #

    the_excerpt() automatically strips out all post formatting - including links. If that's not suitable for your needs, try replacing with with the_content().

  3. 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.

  4. 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!

Reply

You must log in to post.

About this Topic