How to get the primary title only
-
When I use get_the_title() to embed title in URL for sharing posts the HTML tags get into the URL too. How can I avoid that?
I know I can get the secondary title by the_secondary_title(), but don’t know how to get primary title separately so I can concatenate them in the URL when I’m trying to share the posts with.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to get the primary title only’ is closed to new replies.