Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress WordPress Theme Development Adding a Blog to a WordPress Theme Coding the Blog Homepage

Frederik Witte
Frederik Witte
1,411 Points

Why do you use the "strip_tags" function, instead of just echoing out "get_the_excerpt", which also doesn't include p?

Why do you use the "strip_tags" function, instead of just echoing out "get_the_excerpt", which also doesn't include p?

1 Answer

Umair Raja
Umair Raja
4,975 Points

Exactly what I thought. Anyway, I think he just wanted to introduce us to the strip_tags() function (appreciated!) and maybe forgot that the get_ version gives us just the content without the tags. Or maybe Wordpress used to do it different back when this video was recorded.