To retrieve the post title of a post as saved in the wp_posts table in the WordPress database use this
<?php echo get_post_field( 'post_title', $post_id, 'raw' ); ?>
If you use get_the_title() function, WordPress applies the ‘the_title‘ filter before returning the value.
Leave a Reply