• Resolved mikonmedia

    (@mikonmedia)


    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>
Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    (@esmi)

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

    Thread Starter mikonmedia

    (@mikonmedia)

    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.

    Thread Starter mikonmedia

    (@mikonmedia)

    ‘<?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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘the_excerpt and URL Mess’ is closed to new replies.