Getting a piece of the content of a post
-
I’m trying to put a description tag to my old posts that I didn’t write a description. I thought I could use something like
substr(strip_tags(get_the_content()), 0, 160);
orget_the_excerpt()
in the header.php but it doesn’t work.Is there any way to get a piece of content without format when I’m in a single post?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Getting a piece of the content of a post’ is closed to new replies.