The Lodge is members-only web design and development videos and live help. Log In or Sign Up.
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// [http://cdpn.io/KdqAD](http://cdpn.io/KdqAD “http://cdpn.io/KdqAD”)
Am I missing something?
@Keilowe Where is your foreach?
Edit: Nevermind, I overlooked it. Where are you posting this excerpt?
@chrisburton I am posting it inside of a file named main.php (Static Page).
@Keilowe Do me a favor, instead of using `the_excerpt()`, replace that with `the_content()`. Does that work?
No :( I thought of that too, no luck.
That’s weird. I don’t see how you can get the titles and other dynamic content except the excerpt.
[Reference from the (Hulk) SMASH](http://wp.smashingmagazine.com/2013/01/14/using-wp_query-wordpress/ “WP_Query SMash”)
[WP Codex: WP Query ](http://codex.wordpress.org/Class_Reference/WP_Query “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.
@mcjohnst Wonderful! Thank you!
You must be logged in to reply to this topic.
Search for Stuff
Browse the Archives
Get the Newsletter
... or get the RSS feed