i have a page loop-page.php and i have used the loop to make what i wanted. i.e
<div class="headings"> <?php the_title();?> </div> <div class="pages_bg"> <?php if(have_posts()):?> <?php while(have_posts()): ?> <?php var_dump(the_content());?> <?php endwhile; ?> <?php endif; ?> </div>
As you can see i did var dump of the output as it wasn’t displaying anything but it came out null.what could be the reason. the content in there in the visual editor?
- The topic ‘the_content returning null’ is closed to new replies.