How to show summary of the post?

Discussion in 'WordPress' started by Jalpari, Nov 2, 2008.

  1. #1
    How to show only summary of posts under category and main page in wordpress. ( not in rss feed)
     
    Jalpari, Nov 2, 2008 IP
    muhammad arif likes this.
  2. callmeminty

    callmeminty Active Member

    Messages:
    1,036
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    80
    #2
    I don't know how to do it in wordpress,could have helped you in blogger.
     
    callmeminty, Nov 2, 2008 IP
  3. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #3
    Open index.php of the wordpress theme and look for

    and replace with
    This will line up posts with summary. It is an elegant way of showing blog under categories and archives. For more information refer to this
     
    olddocks, Nov 2, 2008 IP
  4. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #4
    I can't find this line in my index.php file. My index.php file contains this code.

     
    Jalpari, Nov 8, 2008 IP
  5. vahidrk

    vahidrk Member

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #5
    .............
     
    vahidrk, Nov 8, 2008 IP
  6. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #6
    Now i replace
    with
    but its still not working.

    Site in my sig, chicken tikka recipes
     
    Jalpari, Nov 8, 2008 IP
  7. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #7
    which file you have edited? It should be the index.php under /wordpress/wp-content/themes/yourtheme/index.php

    and it should look like this

    If that doesnt work, try this..

     
    olddocks, Nov 8, 2008 IP
  8. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #8
    Yes i am adding index.php file
     
    Jalpari, Nov 12, 2008 IP
  9. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #9
    Here is what you have to do..

    To show summary of posts in categories, open page.php and look for this code

    replace with

    If you need your archives to be displayed in the same summary of posts, open archive.php and do the same changes.

    All the Best!
     
    olddocks, Nov 21, 2008 IP
  10. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #10
    modifying page.php file is for wp pages, and when i change archive files then it works for categories. THANKYOU
     
    Jalpari, Nov 28, 2008 IP
  11. HowToMakeMyBlog.com

    HowToMakeMyBlog.com Peon

    Messages:
    140
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #11
    HowToMakeMyBlog.com, Nov 28, 2008 IP