• jessicaleedesign

    (@jessicaleedesign)


    I am using YageZine theme and the posts content is showing without page or line breaks on the main posts page. This creates run-on sentences and is not visually appealing! For example:

    Location: Craggie’s Public House Time: 4:30-10:30PM Craggie Brewing Company proudly sponsors the Freaks of Asheville 2010 calendar (which raises funds for Arts2People).

    INSTEAD of:
    Location: Craggie’s Public House
    Time: 4:30-10:30PM
    Craggie Brewing Company proudly sponsors the Freaks of Asheville 2010 calendar (which raises funds for Arts2People).

    Here’s a link to where it is happening:
    https://craggiebrewingco.com/home/?page_id=13/

Viewing 3 replies - 1 through 3 (of 3 total)
  • It looks like that theme uses a funky version of the Loop in the index.php file:
    <?php the_content_rss('', TRUE, '', 65); ?>

    I think that function, the_content_rss, is pulling the content from your RSS feed, and not including any formatting.

    You have two other options which would be better for this, the_content and the_excerpt.

    Thread Starter jessicaleedesign

    (@jessicaleedesign)

    Do you think you would be able to tell me how to incorporate those? Do I edit the index.php file to say

    <?php the_content(”, TRUE, ”, 65); ?>
    or
    <?php the_excerpt(”, TRUE, ”, 65); ?>

    Thank you so much for your help!!

    I’m afraid that the parameters on each of those functions are different, so it isn’t quite that easy.

    The simplest one to add would be the excerpt, you could replace this:
    <?php the_content_rss('', TRUE, '', 65); ?>
    With this:
    <?php the_excerpt(); ?>

    The excerpt is already a shortened version of your content so you don’t need to make any adjustment unless you want to change the excerpt length.

    By default, your excerpts might not be formatted just how you’d like them to. But the advantage of using excerpts is that you can customize them for each post with HTML to include whatever content you’d like.

    If you want to use “the_content” and not load the entire content of a post, you’d have to use a custom Loop, which would be a bit more complicated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Individual posts on posts page showing without line breaks’ is closed to new replies.