Support » Themes and Templates » Want to show Post Titles Only

  • Resolved ramrod1


    I would like my main posts page to show post titles only….no content. When I click on a category it goes to the posts in that category and shows content…that’s great. I just don’t want any post content showing on the main blog page…just titles. Can this be done? Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yep! This will be very easy as long as the main blog page and the category don’t reference the same file.

    Simply navigate to your theme files and go to index.php (or possibly home.php). Then find where it says <?php the_content(); ?> and simply comment it out like so: <?php /* the_content(); */ ?>. That should do the trick.

    BEAUTIFUL! You da man Conner..that was so clean and easy. I’m slowly learning that little code strategies like this are so much more elegant than plugins. Thank you a ton.

    You’re welcome! In case you did not know, that basically made that a PHP comment. The code is still there, but WordPress skips over it. So, if you ever want to add that back, simply remove the comments /* and */

    Yeah…the php comments are very cool. I’ve deleted a few things earlier in my building adventure and had to go to the theme folder on my hard drive to upload the original files and sort of “reset” LOL!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Want to show Post Titles Only’ is closed to new replies.