Support » Plugins and Hacks » How to list posts TITLES ONLY from a specific category

  • bradleysue

    (@bradleysue)


    I’m trying to list my 5 most recent posts from a specific category – TITLES ONLY (i.e. without a link to the post).

    Does anyone know how to do this, ideally with a plugin.

    I already use Recent Posts and List Category Posts but can’t figure out how to do what I need with either of these plugins.

    thanks for any help you can provide.
    Sue

Viewing 1 replies (of 1 total)
  • threestyler

    (@threestyler)

    Open the index.php or the related file/location you want this modification to be on and look for:

    <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>

    Replace with:

    <?php the_title(); ?>

    That will remove the links from the titles. You could limit posts to 5 via the WordPress admin > Settings > Reading

Viewing 1 replies (of 1 total)
  • The topic ‘How to list posts TITLES ONLY from a specific category’ is closed to new replies.