Wordpress How do I add a "read full post" on my categories page? PLEASE help me!

Discussion in 'HTML & Website Design' started by Germz, Apr 10, 2008.

  1. #1
    Germz, Apr 10, 2008 IP
  2. anarmyofme

    anarmyofme Well-Known Member

    Messages:
    1,136
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    130
    #2
    Typically, with Wordpress, you will find a "Split posts with More tag" immediately to the left of the spell check icon when writing a post. Use this when you want to break the post into two sections (teaser & full post). If you can't find the icon, let me know.
     
    anarmyofme, Apr 10, 2008 IP
  3. dewald

    dewald Peon

    Messages:
    13
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That functionality is controlled in WP by the <!--more--> tag inside the post content.

    You'll need a custom plugin that will strip out the <!--more--> from the content when the current page is the homepage.

    Best regards,

    Dewald
     
    dewald, Apr 11, 2008 IP
  4. Germz

    Germz Peon

    Messages:
    1,109
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yeah I know about the more html.
    I just need to know how to not make it happen in the front page.
     
    Germz, Apr 11, 2008 IP
  5. od3n

    od3n Active Member

    Messages:
    715
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    60
    #5
    u need to change the code in the php files. somewhere in wp function files.
     
    od3n, Apr 11, 2008 IP
  6. Germz

    Germz Peon

    Messages:
    1,109
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #6
    That's a REALLY big file, any more specific please?
    Thank you.
     
    Germz, Apr 11, 2008 IP
  7. kg_lew

    kg_lew Peon

    Messages:
    755
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #7
    use the 'more' tag...
     
    kg_lew, Apr 11, 2008 IP
  8. nethelp

    nethelp Peon

    Messages:
    389
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #8
    When you write your post, go to HTML version and insert the <!--more--> tag manually or click the more button, this will always work with anyone.

    Good luck!
    Robert
     
    nethelp, Apr 11, 2008 IP
  9. Germz

    Germz Peon

    Messages:
    1,109
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Are you 2 trying to answer my question? or should I report you for spamming and trying to get your post count up?
    If you read my previous post you would know that I already talked about the 'more' tag. What I want to know is how to make them appear full in the homepage but appear the more tag in a category or archive.
     
    Germz, Apr 11, 2008 IP
  10. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #10
    So what you want is X posts to appear on your homepage, and then exceprts (shortened verisons) of the post inside the tag cat and archive sections?
    Well Here is one way you could go about it. Forget about using the more tag. We could use the excerpt tag which automatically cuts the article.
    What you would need to is inside your theme folder:

    1. Open up archive.php, find
    <?php the_content() ?>
    Code (markup):
    and automatically replace this with
    <?php the_excerpt() ?> 
    Code (markup):
    2. Save changes to archive.php and re-upload.
    3. Now if you open up your archives you should find the posts are limited to 50 words or something like that! If this is the desired effect then you can continue to:
    4. Open up category.php this time and repeat step 1.

    Hopefully now it should be fine and your full post should still be displaying on the homepage, as long as you haven't used the more tag already on it.

    Let me know how it goes, this is one option somebody may have a better, this is just with my limited knowledge.
     
    wd_2k6, Apr 11, 2008 IP
  11. Germz

    Germz Peon

    Messages:
    1,109
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Thank you, but My category page already has that code, but it doesn't say "Read full post" it just cuts the post what I want is a link to appear under the post that says "read full post" or something like that.
     
    Germz, Apr 11, 2008 IP
  12. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I thought the excerpt did this i'm not sure. You could try adding this inside the file where the excerpt is appearing:

    <a href="<?php the_permalink() ?>"> Read More </a>
     
    wd_2k6, Apr 11, 2008 IP
  13. Germz

    Germz Peon

    Messages:
    1,109
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Thank you! It works now!! Awesome reps dude.
    (it says I can't add it cause I have to spread some reps to others)
    I'll rep you again once I can.
     
    Germz, Apr 11, 2008 IP
  14. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Nice one, glad it worked! :D
     
    wd_2k6, Apr 11, 2008 IP