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. Jul 21 2010

    Ijin copy, siapa tau nanti saya gunakan!

    Reply
  2. Jul 21 2010

    i’ll bookmark this! but, for what purpose?

    Reply
    • Jul 21 2010

      some wordpress blogger just want do that for many purposes some are to save space small in the frontpage with many headlines links and thus make room for putting other messages or ads

      Reply
      • Jul 22 2010

        i see… thanks for the reply sir

        Reply
  3. Jul 21 2010

    G bisa WP nih ^^

    Reply
  4. Jul 21 2010

    kalo di blogger ??

    Reply
  5. Jul 21 2010

    Untuk wordpress self hosted ya mas… :-)

    Reply
  6. Jul 21 2010

    Makasih untuk tipsnya mas…
    Saya simpan dulu…

    Reply
  7. Jul 21 2010

    Not working to my.

    Reply
  8. Jul 22 2010

    nice job…. ill try this at my blog… thx sir.. :D

    Reply
  9. Jul 22 2010

    nice tips Mas Fatih.

    Reply
  10. Jul 22 2010

    tahnk’s for this article. this great job.

    Reply

Share your thoughts, post a comment.

(required)
(required)

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

Subscribe to comments