The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

WORDPRESS: Excerpt used for Latest Posts but does not show up on browser…

  • # February 16, 2013 at 10:11 pm

    I am using a code to display Latest Posts on my static home page. The title and date work perfectly but when I try and add the_excerpt nothing appears…

    HTML// []( “”)

    Am I missing something?

    # February 16, 2013 at 10:57 pm

    @Keilowe Where is your foreach?

    Edit: Nevermind, I overlooked it. Where are you posting this excerpt?

    # February 17, 2013 at 1:15 am

    @chrisburton I am posting it inside of a file named main.php (Static Page).

    # February 17, 2013 at 6:40 am

    @Keilowe Do me a favor, instead of using `the_excerpt()`, replace that with `the_content()`. Does that work?

    # February 18, 2013 at 1:24 am

    No :( I thought of that too, no luck.

    # February 18, 2013 at 4:28 am

    That’s weird. I don’t see how you can get the titles and other dynamic content except the excerpt.

    # February 18, 2013 at 5:00 pm

    This reply has been reported for inappropriate content.

    Try this.

    Reference from the (Hulk) SMASH

    WP Codex: WP Query

    The issue likely lies in your choice of get_posts() or there’s a sneaky little filter on the_excerpt() somewhere, likely in functions.php.

    # February 21, 2013 at 9:37 pm

    @mcjohnst Wonderful! Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed