How to store the_title() into a variable to reutrn the value, not just echo it

You can use get_the_title() to return the current post title in the loop.

Leave a Comment