wordpress echo the page title
<?php echo get_the_title(post->$ID); ?>
wordpress echo the page title
<?php echo get_the_title(post->$ID); ?>
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 :)
get post title by post id wordpress
get_post( $post_id )->post_title
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us