Get Raw Unfiltered Post Title In WordPress

[ad_1]

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.

[ad_2]

Leave a Reply

Random Post Selection ::

Recent Posts

Unlock Unlimited Downloads