• I am creating the site test.crossfitcody.com
    and I cannot get the posts to show paragraphs or line breaks at all. The home page post the client just wants the WOD of the day and I need to separate each workout. Also, on the instructor page the same thing occurs. How do I create breaks that are easy in the editor for posting since the client cannot do coding?

Viewing 3 replies - 1 through 3 (of 3 total)
  • On your home page your theme is currently using the_except() instead of wp_content().
    So making that change will fix that. You can get line breaks when using the_excerpt().

    I clicked on the workout on the home page, which took be to a page where the content is all aligned centered and I can see breaks.

    On the instructor page, I can see breaks and a bunch of images, so I don’t see the problem here either.

    Thread Starter CFCody

    (@cfcody)

    I fixed the other two pages.
    I guess I dont understand where I would replace the code? The index page right? Right now it looks like this:
    <?php
    //echo get_the_excerpt().”

    “;
    $get_the_excerpt = trim(preg_replace(‘/<a[^>]*>(.*)<\/a>/iU’,”, get_the_excerpt()));
    echo substr($get_the_excerpt, 0, 330);
    if ( strlen( $get_the_excerpt ) > 330 ) {
    echo ‘… Read More‘;
    }
    ?>

    what do I do? sorry.

    YOu could just replace the whole thing with

    <?php the_content(); ?>

    But as I said, this will display the entire post, not just a few lines. So make sure you make a backup in case you want to go back.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Paragraphs in Posts not showing’ is closed to new replies.