Search
 
SCRIPT & CODE EXAMPLE
 

PHP

get page title wordpress

<?php echo get_the_title(); ?>
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 :: laravel artisan progress bar 
Php :: laravel_8 
Php :: select sum in laravel 
Php :: allow extension image chrome, firefox 
Php :: make pagination wordpress admin panel 
Php :: php get file type from url 
Php :: mobile number validation in laravel 8 
Php :: count in string php 
Php :: laravel when 
Php :: laravel migrate fresh 
Php :: file upload in php through ajax 
Php :: laravel migration add column after 
Php :: php convert number to month 
Php :: echo session 
Php :: open php ini from terminal 
Php :: get single row in codeigniter 
Php :: code php ajout heure 
Php :: access storage from the view laravel 6 
Php :: how to remove public from url in laravel 
Php :: artisan cache clear 
Php :: codeigniter query builder order by 
Php :: if any error in blade laravel 
Php :: ext-bcmath php 8.0 install 
Php :: Fatal error: Uncaught ReflectionException: Class config does not exist in 
Php :: grouping routes in laravel 
Php :: how to count no of words in a string in php without using string functions 
Php :: php quit 
Php :: php string replace regex 
Php :: check file selected in php 
Php :: how to check if PHP-FPM is running 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =