the_content( ) doesnot work in this {single-custom_post_type.php} page?

Share Now

SOLUTION:

You have to put your code inside this loop

<?php if(have_posts()): while(have_posts()): the_post(); ?>
//your code for the content
<?php echo wpautop( the_content() ); ?> 
<?php endwhile; endif;?>
Picture of Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert