WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] the "more..." quicktag isn't working (4 posts)

  1. Runtheball
    Member
    Posted 4 years ago #

    I'm typing my content into posts, and trying to use the "read more..." quicktag, but it isn't working. The entire post still displays.

    What are some of the things that would cause this?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Perhaps your current theme doesn't use the_content() or you have a bad plugin? Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-specific problems?

  3. osteopathglasgow
    Member
    Posted 4 years ago #

    I had problems with an installed template getting the text fitting inproperly. What I did was edit the “Main Index Template” (index.php), changing the line…

    ?php the_content(”); ?

    to…

    ?php the_excerpt(”); ?

    When creating a new post, you have to be sure to enter something into the “excerpt” field.

    Hope this helps

  4. Runtheball
    Member
    Posted 4 years ago #

    Thanks!
    Fiddling with 'the_excerpt' get me moving in the right direction. But it still wasn't quite right, so I dug a little deeper and found this in the Codex...

    How to use Read More in Pages

    Please remember that the "Read More" tag is used only on the Home page which shows the latest posts. It does not work in "Pages". If you want to turn it on in Pages too for showing a set of partial posts, use the following code inside the loop for the dynamic content:

    <?php
    global $more;
    $more = 0;
    ?>
    //The code must be inserted ahead of the call to the content
    
    <?php the_content('Continue Reading'); ?>

    Yeah, I was running a page of blog posts from a single category, separate from my main blog page. Everything works now! Source of above is http://codex.wordpress.org/Customizing_the_Read_More

Topic Closed

This topic has been closed to new replies.

About this Topic