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.