Skip to content

July 21, 2010

14

Show Posts Title Only in WordPress Blog Frontpage

How to show only the titles of articles / posts  on the frontpage / homepage of WordPress-powered blog without displaying the contents?

This tutorial works for self-hosted WordPress blog, not in WordPress.com or any other free wordpress blog where you don’t have access to edit the index.php file.

Follow these steps

  1. Login to your self-hosted WordPress blog
  2. Appearance -> Editor
  3. Click Index.php -> find this code <?php the_content(); ?>
  4. Delete and replace with the following code at #5:
  5. <?php
    if ($single) {
    the_content();
    }
    else {//no content, nothing.
    }
    ?>
  6. Update File. Done.

14 Comments Post a comment
  1. Nov 29 2010

    Hi I want to do this but I am using the 2010 Weaver theme and the index.php file does not have
    Where do I find that part?

    Reply
  2. Nov 29 2010

    wah bgs juga neh triknya, perlu dicoba, thx mas …

    Reply

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments