Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get page title in wordpress

Well, I have tried <?php echo get_the_title('About Us');?>

But the code is not working. I am using wordpress 4.1. This should work but it isn't. Has wordpress updated the functions?

like image 734
HalfWebDev Avatar asked Dec 26 '14 06:12

HalfWebDev


People also ask

How do you find the title of a page?

Again, on Windows, you can select Ctrl + F and then type “title” to quickly find the Title. That's all there is to it. Now you can easily find the webpage Title for any page on your website.

What is the page title in WordPress?

Your site's title and tagline serve as most visitors' introduction to your content. In many WordPress themes, these elements appear at the top of every page – often within the header. The title is typically the name of your site, while the tagline is a short phrase or sentence underneath.


1 Answers

Try this one, It's may help you

<?php single_post_title(); ?>

Thanks :)

like image 81
Mohammad Al-amin Avatar answered Oct 02 '22 15:10

Mohammad Al-amin