Another quick WP Question

Discussion in 'WordPress' started by JBMedia, Jul 11, 2011.

  1. #1
    I was wondering, I have my blog set up magazine styled so it jumbles beginning parts of my posts and you can click to "Read More".

    The thing I was wondering is, it doesn't leave spaces in between enter spaces (<br>). Is there anyway I can fix that on my main page?

    If you need to look at it to tell its @ moviesinreview.com

    Is this something that can be fixed, or is it just something different with every theme?

    Thank you so much for any advice support, I really really appreciate it.
     
    JBMedia, Jul 11, 2011 IP
  2. тнє Sufi

    тнє Sufi Peon

    Messages:
    391
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Actually the_excerpt() function does this "Read More" breakdown part. This function does not care about linebreak (<BR> tag)!
     
    тнє Sufi, Jul 11, 2011 IP
  3. JBMedia

    JBMedia Active Member

    Messages:
    513
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #3
    So is there any way really for me to make it look more organized, or is it something I'll just have to live with?

    Thanks for the help so far.
     
    JBMedia, Jul 12, 2011 IP
  4. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    the_excerpt() removes all HTML from the output, including paragraphs and line breaks, which avoids some problems but causes others.

    One thing you could do, if you can be bothered, is replace the_excerpt() with the_content(), which will display your entire post content, and then manually insert the <!--more--> tag (either by typing it or using the button on the editor) to put in the "read more" link for each post.

    Edit: Didn't have time to do much research but I quickly Googled this post which looks like it might let you keep certain tags in the excerpt...I've not tested it though since I'm in a hurry.
     
    kiramanic, Jul 12, 2011 IP
  5. Aman Arora

    Aman Arora Active Member

    Messages:
    100
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #5
    Goto the index.php file of your theme and find the_excerpt() replace it with the_content()
    after that you will have to add <!--more--> in your blog post, so that content only before this line will be shown on the index page.

    Hope I helped :)
     
    Aman Arora, Jul 12, 2011 IP
  6. JBMedia

    JBMedia Active Member

    Messages:
    513
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #6
    Thank you all for the information and advice! I highly appreciate it. I will try out this technique tonight and see if I like how it works.
     
    JBMedia, Jul 13, 2011 IP