WordPress.org

Ready to get started?Download WordPress

Forums

Removing wordpress cutoff "the_content" (3 posts)

  1. ronie5ive
    Member
    Posted 3 years ago #

    I have a stubborn theme which seems to not fully display elements within posts or pages. As it turns out, there's a div in the main page template that includes:

    <?php the_content('Read the rest of this entry &raquo;'); ?>

    I've tried removing the div and the latter code but theres no luck in displaying everything on the page or post. Everytime I remove them, the content in the page or post disappears.

  2. Curtiss Grymala
    Member
    Posted 3 years ago #

    Within the loop (the part that starts like if(have_posts()) : while(have_posts()) : the_post();), you should try adding the following code:

    global $more;
    $more = 1;

    That tells WordPress that you want to display the entire content of the post rather than just the content about the <!--more--> tag.

    You can read about the $more variable in this codex entry.

  3. ronie5ive
    Member
    Posted 3 years ago #

    Aha! Problem resolved....Thnx for your reply Curtiss. the problem actually derived from my browser - Chromium. its known for incorrectly displaying flash media. Time for a browser switch!

Topic Closed

This topic has been closed to new replies.

About this Topic