Search
 
SCRIPT & CODE EXAMPLE
 

PHP

get page title wordpress

<?php echo get_the_title(); ?>
Comment

wordpress echo the page title

 <?php echo get_the_title(post->$ID); ?> 
Comment

wordpress get category page title

//wordpress get category page title 
echo single_cat_title();
Comment

wordpress get site title

You are not outputting anything to show. You are only assigning blog name to a variable. You need to echo the content. It should be :

<h1><?php echo get_bloginfo( 'name' ); ?></h1>
Hope this helps :)
Comment

PREVIOUS NEXT
Code Example
Php :: a2dismod php 8.0 
Php :: php contruct parent 
Php :: get the string after a character in php 
Php :: laravel list all routes 
Php :: migrate single file in laravel 
Php :: zsh: command not found: laravel 
Php :: wordpress loop permalink 
Php :: laravel description substring 
Php :: strtoupper in php 
Php :: homebrew install php 7.4 
Php :: laravel inrandomorder 
Php :: php loop through json 
Php :: popup in php 
Php :: php get youtube code from url 
Php :: php array remove empty values 
Php :: php iterate folder 
Php :: force https with php 
Php :: wordpress get post id 
Php :: mysql replace a character in a string 
Php :: confirm before submit form php 
Php :: how to remove index.php in codeigniter 
Php :: trim comma from variable in php 
Php :: webmin forgot password 
Php :: string to datetime php 
Php :: laravel validation min string length 
Php :: php display all rows in mysql table 
Php :: remove add media button wordpress editor 
Php :: wp max revisions 
Php :: create laravel project old version 
Php :: custom js css using wordpress hook 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =