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

Share Now

Share on facebook
Share on pinterest
Share on twitter
Share on linkedin
Share on email


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;?>
Nahid Mahamud

Nahid Mahamud

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