开发者

How do I get the name of the page I am on?

开发者_开发百科I want to print the name of the page I am on in Wordpress. How do I do this?


Just put this in your page template:

<?php the_title(); ?>


in addition, think you should add the "echo" so it would output or print the title. so goes like:

<?php echo the_title(); ?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜