• Does anybody know if there’s a plugin that makes it possible to display an excerpt, but make the post title link for it un-clickable?

    I’d like to have a title and short piece of text displaying at the top of each of my categories. I can make posts sticky, but I just want to know if there’s a way of removing the link from them on the category pages.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You only have to remove the link code:

    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>

    Becomes…

    <h2><?php the_title(); ?></h2>

    Also in archive.php, just remove the code e use the-excerpt()

    Thread Starter jsp_1983

    (@jsp_1983)

    Ahh, sorry – I’ve just re-read my post and I should have been clearer.

    I only want to do this for posts that I’ve made sticky (using the sticky plugin) – the first posts to show on a category.

    <?php if( is_sticky() ):?>
    <h2><?php the_title(); ?></h2>
    <?php else:?>
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2>
    <?php endif;?>
    Thread Starter jsp_1983

    (@jsp_1983)

    Cool… I’ll give it a try – thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to show excerpt only?’ is closed to new replies.