wp get tagline php

You can use the following code to retrieve the tagline in WordPress:

$tagline = get_bloginfo('description');
echo $tagline;

Explanation: 1. The get_bloginfo() function is used to retrieve information about the current site. In this case, we are using it to get the tagline. 2. We pass the parameter 'description' to get_bloginfo() to specify that we want to retrieve the tagline. 3. The retrieved tagline is then stored in the variable $tagline. 4. Finally, the tagline is echoed out using echo $tagline.