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
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?
the_excerpt()
the_content()
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.
Try this.
http://codepen.io/totallyoutrageous/pen/pIquG
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.
@mcjohnst Wonderful! Thank you!
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
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 withthe_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.
Try this.
http://codepen.io/totallyoutrageous/pen/pIquG
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.
@mcjohnst Wonderful! Thank you!