Search
 
SCRIPT & CODE EXAMPLE
 

PHP

get page title wordpress

<?php echo get_the_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 :: fetch body show in php code 
Php :: permissions on ssh 
Php :: php get text from html 
Php :: laravel custom 404 blade 
Php :: sanitize_text_field 
Php :: sort laravel eloquent 
Php :: php difference between two dates 
Php :: php 2d empty array remove 
Php :: remove all items of an array except the last one in php 
Php :: valet laravel 
Php :: php case switch 
Php :: laravel route view 
Php :: previous month number in php 
Php :: carbon parse timestamp 
Php :: php turney if 
Php :: laravel 8 created at format 
Php :: laravel request integer 
Php :: php echo number with decimal 
Php :: laravel set config value runtime 
Php :: count with left join in laravel 
Php :: convert multi-dimensional array into a single array in php 
Php :: php sort reverse 
Php :: count words in string php 
Php :: eloquent delete all where 
Php :: deactivate auto update wordpress plugins 
Php :: php set timezone 
Php :: phpcs 
Php :: foreach stdclass object php 
Php :: get slogan wp 
Php :: yii2 activeform 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =