• Im trying to create a conditional tag in my sidebar

    <?php if (is_single()) {
    	echo ('Welcome Guest! Do you like <?php the_title(); ?> ?');
    } else {
    	echo ('');
    }
    ?>

    I want to display the post title using the above code…

    Hope you can help me

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Get Post Title’ is closed to new replies.