Answers for "get post title"

PHP
2

wordpress echo the page title

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

get post title by post id wordpress

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

category title in post

<?php
foreach((get_the_category()) as $category) { 
    echo $category->cat_name . ' '; 
} 
?>
Posted by: Guest on March-11-2020

Browse Popular Code Answers by Language