Brunelleschi is based on the Twenty-Ten theme, but has really grown since then. I like my theme, but I'm trying to modify the way a posts in page plugin works and I need to copy the relevant part of the loop to do it.

  1. I want to display full posts, but have them cut off at the "more..." spot.
  2. In this theme, it says "Continue Reading."
  3. The original code for the plugin below:

            <div class="entry-summary">
            <?php the_excerpt(); ?>

The big issue with this is that excerpts are formatted differently and use a specific truncation and no pictures, whereas cutting off at the "more" is a manual thing, which I want.

So I modified the code to:

            <div class="entry-summary">
            <?php the_content(); ?>

This displays full content, but it does not cut off at the "more." So I go hunting in the loop and try replacing the code with just about every potentially relevant snippet I can find in the loop.php theme file and nothing works. They do post formats, wonky image galleries (sort of), or the full content. I've pastebinned the loop.php. I just need help finding which snippet to copy over 'cause it's not working even though it does work in the regular templated pages, just not on the embedded posts in pages.

The brunelleschi loop code on pastebin


I keep thinking it should be this particular snippet:

                                <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'brunelleschi' ) ); ?>

But when I use that instead of the version without args, it still shows the full post despite having manual more tags in those posts.

  • 1
    Probably a silly question, but: have you added the <!--more--> quicktag to your posts, to define the cutoff point? Commented Nov 14, 2012 at 3:37
  • I think that this article in WordPress codex should help you understand the matter better. :) Commented Nov 14, 2012 at 3:54
  • @ChipBennett Yes, I have.
    – Liana Mir
    Commented Nov 14, 2012 at 14:58
  • @pogoking Looking...
    – Liana Mir
    Commented Nov 14, 2012 at 14:58

1 Answer 1


It sounds like you need to override the $more default. Do this:

        <div class="entry-summary">
        global $more;
        $more = 0;
        the_content(); ?>

It is a solution pretty much straight from the Codex.

  • Well, it does create a more, but it doesn't do it the way the theme does, so I'll see if I can find something that looks like this in the theme file. That's my only problem. Not theming, finding what the theme already did. I'm straight copy/pasting here.
    – Liana Mir
    Commented Nov 14, 2012 at 15:02
  • That is how WordPress deals with <--more--> content. If the theme is doing something else you are going to have to find the relevant code and paste it into your question. I was going to say to look for add_filter( 'the_content' or add_filter( 'the_excerpt' with or without the space, but those should work with the code above. The theme must be doing something of its own devising.
    – s_ha_dum
    Commented Nov 14, 2012 at 15:08
  • Yes, and I've been trying and not finding, which is WHY I pastebinned the file and asked for help looking from more knowledgeable eyes than my own. It didn't seem that much to ask for.
    – Liana Mir
    Commented Nov 14, 2012 at 15:11
  • It is a fair question-- I don't think I suggested otherwise-- but the problem is not in the file you posted on the pastebin, at least not that I can see. I also don't see anything that would make me think the typical the_content and the_excerpt functions and filters won't work, but you are (in effect) telling me they don't. If I'd seen anything odd in that file, I would have suggested a different solution (if I had one).
    – s_ha_dum
    Commented Nov 14, 2012 at 15:20
  • 1
    @LianaMir "Okay figured out how to combine that snippet with the override and it worked! Thank you."* - Would you mind editing this answer to include your final code examples? Commented Nov 14, 2012 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.