• Hi,
    I want to call in the title of a page (not the browser window title, just the page name). Is this correct… ?

    It’s not working

    <?php
    	if (is_page()) {
    		echo 'The city of'. wp_title() . 'is sunny.';
    	}
    ?>

    I can’t figure it out, how to insert the page title in the sentence. Help appreciated. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to insert page title?’ is closed to new replies.