Answers for "wp get title"

PHP
2

wordpress echo the page title

<?php echo get_the_title(post->$ID); ?>
Posted by: Guest on November-30-2020
1

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 :)
Posted by: Guest on March-08-2021
0

get post title by post id wordpress

get_post( $post_id )->post_title
Posted by: Guest on October-13-2020

Browse Popular Code Answers by Language