Help Me in Displaying Full Content WP i.e Modify The Excert Tags

Discussion in 'HTML & Website Design' started by peterbenson, Aug 6, 2009.

  1. #1
    I put up a blog with WP 2.7 however apart from the index.php I want all other posts to be displayed fully.

    I did a research on the coding and to my understanding I am suppose to change ‘<?php the_excerpt(); ?>' to ‘<?php the_content(); ?>' in index.php, affecting archives.php, archive.php category.php.

    First problem is in my theme files there is no category.php
    Secondly the index php has this tags <?php the_content(__('Read more', 'studiopress'));?><div class="clear"></div>

    So I am confused

    Anyway, I don't know anything about coding as a matter of fact this is my first blog it's driving me crazy and I am not even 10% finished.

    Can someone please help?
     
    peterbenson, Aug 6, 2009 IP
  2. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Firstly, if a theme does not have a category.php file, then the archive.php, and if it doesn't have a archive.php file then the index.php file is used. This is called the template hierarchy. You can read more about it here: http://codex.wordpress.org/Template_Hierarchy

    Secondly, <div class="clear"></div> is not part of the <?php the_content();?> tag, and the parameter in the brackets (__('Read more', 'studiopress')) is for the "Read more" link to the full post if you use the <!--more--> quicktag in your post. It is always a good idea to include the parameter so you can replace '<?php the_excerpt(); ?>' with '<?php the_content(__('Read more', 'studiopress')); ?>'

    You can read up on the the_excerpt here: http://codex.wordpress.org/Template_Tags/the_excerpt and the_content here: http://codex.wordpress.org/Template_Tags/the_content
     
    qazu, Aug 6, 2009 IP
  3. peterbenson

    peterbenson Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank qazu for the information however it is still too complex for me I would like hire anyone knowledgeable in coding to fix this for me. Let me know!
     
    peterbenson, Aug 6, 2009 IP