• I am new to WordPress – ‘nough said about that!

    I am sorry I don’t know the specific terminology to use for this question but I am using a theme I have downloaded for WordPress and except for the current posts, it condenses the posts filed in the archives or categories sections to only five or six lines and then you have to click on the ‘permalink’ button to unroll the post to read it. I have experimented with about six themes and about half of them do this while the other half don’t. Unfortunately, the theme I particularly like rolls these posts up which is something I don’t like. Is this something that is easy to revise so that all the post show in their entirety when displayed? Is what I have copied and pasted below what I need for this situation.

    ***********************************************************
    Use with Conditional Tags

    Replaces the_content() tag with the_excerpt() when on archive (tested by is_archive()) or category (is_category()) pages.
    Both the examples below work for versions 1.5 and above.
    <?php if(is_category() || is_archive()) {
    the_excerpt();
    } else {
    the_content();
    } ?>

    ***********************************************************
    Also…..I guess I should also ask if these posts being condensed to only a few lines when archived or categorized actually accomplishes something I may not be aware of?

    Thanks….Alan

Viewing 5 replies - 1 through 5 (of 5 total)
  • See that block of code you put up there? Just change it to
    <?php the_content() ?>
    and bob’s your uncle.

    As for what the_excerpt accomplishes? Presentation or style is all. You can look up both functions in the documentation section if you’d like.

    posts being condensed to only a few lines when archived or categorized actually accomplishes something I may not be aware of?

    I think it makes more sense to have only excerpts in an archives view: if I’m looking at your June 2005 Archives and you had 50 posts… I’d rather see the title and a short excerpt of them to help me to decide which one I’d like to read than to have to scroll down through 50 full posts. But ultimately it comes down to personal taste.

    Thread Starter tekoband

    (@tekoband)

    Well….that wasn’t to difficult to resolve.

    I will get right on that first thing this morning and see if I can manage to follow those directions.

    HandySolo and Moshu….

    Uncle Bob and I thank you both very much for your time and comments. I’m sure I will be a return customer. 🙂

    Thread Starter tekoband

    (@tekoband)

    Me again….

    Okay – I got it corrected and working the way I like but how I went about it may or may not have been the most efficient way – especially since I barely have a clue what I am doing with regard to coding.

    I went to the specific Theme folder and viewed each ‘php’ file in Notepad doing a “search” on the word “excerpt”. It appeared in two files as (<?php the_excerpt() ?>)and I simply replaced “excerpt” with “content” as was discussed. The two files were “archive.php” and “search.php”.

    Since I am just getting into this and given the fact I don’t know what files may contain what – is that an efficient way to approach this or is there other information that might define to a beginner what files might contain what information? In this case I initially assumed that the statement I was looking for would be in the “comments.php” which wasn’t even close. I have not run across anything – at least that I could understand.

    Thanks again – Alan

    You’ve found the proper template files: archive.php is used by WP to display the monthly and the category archives view.
    More details about template files:
    http://codex.wordpress.org/Template_Hierarchy.

    (comments.php has only the code for displaying the comments – if they exist – and the comment form)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Condensing Archived & Categorized Posts’ is closed to new replies.