WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Paragraph & BR Tag Not Working Correctly For Posts

[Resolved] Paragraph & BR Tag Not Working Correctly For Posts

  • For some reason wordpress displays an entire post within paragraph tags

    ie. < p > YOUR ENTIRE POST < / p>

    So instead of having proper paragraphs the post’s paragraphs are done using the < BR / > tag.

    How can I get wordpress to use the paragraph tag correctly for posts.

    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • esmi

    @esmi

    Forum Moderator

    Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of specific help.

    http://theo.mypreview.co.uk/

    Please refer to the content on the right hand side underneth the main title graphic. I’ve added a margin to the br tag, but this has had no effect in safari.

    esmi

    @esmi

    Forum Moderator

    You have some markup issues and CSS errors that may be causing problems.

    thanks I fixed the markup issues, I had a look through the list of CSS errors, there is nothing in there that would conflict with the front page. Most of the errors listed are are from plugins.

    esmi

    @esmi

    Forum Moderator

    What code are you using to generate that text on the right?

    <div class="front<?php echo ($i > 0)? "invisible" : NULL; ?>" id="top_home_<?php echo $i ?>">
    <h1><img src="<?php bloginfo('stylesheet_directory'); ?>/img/logobig.gif" alt="Theo Chalmers Photographer" /></h1>
                <h2><a href="<?php the_permalink() ?>"><?php echo $custom_fields["title"][0] ?></a></h2>
                <h3><?php echo $custom_fields["subtitle"][0] ?></h3>
                <?php the_excerpt(); ?>
    
            </div>

    This is the code found on single.php

    <div class="bb">
                <?php the_content(); ?>
                <div class="clear"></div>
            </div>

    This is the actual post that the front page is using, all the stylings are appearing http://theo.mypreview.co.uk/featured/featured

    esmi

    @esmi

    Forum Moderator

    Try replacing ?php the_excerpt(); ?> with ?php the_content(); ?>.

    thanks that worked!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] Paragraph & BR Tag Not Working Correctly For Posts’ is closed to new replies.
Skip to toolbar