WordPress.org

Ready to get started?Download WordPress

Forums

Help Editing Archive Page? (5 posts)

  1. Ulchie
    Member
    Posted 7 years ago #

    Okay, I had a similiar post a while back but I was using the old theme and a diff wordpress version. Now I'm using a new WP theme and version that is compatible.

    Here is my issue. I want archive pages and ANY page other than the front one to show just an excerpt of the articles. Right now they show the entire article... what has to be edited?

    Thanks a million!!!

  2. sadish
    Member
    Posted 7 years ago #

    most of the time, it is archive.php, and search.php in the theme folder. look for the_content() in them and change it to the_excerpt()

  3. Ulchie
    Member
    Posted 7 years ago #

    Uh I tried that for the search results page and it doesn't appear to be working. Here is the original code from search.php that shows the entire post. What should it be changed to?

    [moderated] code pasted at this link:
    http://wordpress.pastebin.ca/509849

    I don't need to put any text in the excerpt field while making my posts do i? Isn't it done automatically?

  4. Ulchie
    Member
    Posted 7 years ago #

    Can anyone help?

  5. sadish
    Member
    Posted 7 years ago #

    I believe it is the line number 36.
    < ?php ($post->post_excerpt != "")? the_excerpt() : BX_shift_down_headlines($post->post_content); ? >

    and change to

    <?php the_excerpt() ?>

    you should be ok.

    Sadish

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags