I know this is really simple but it just isn't coming to me for some reason and google isn't helping me today.
I want to output the pages content, how do I do that?
I thought it was this:
<?php echo the_content(); ?>
I know this is really simple but it just isn't coming to me for some reason and google isn't helping me today.
I want to output the pages content, how do I do that?
I thought it was this:
<?php echo the_content(); ?>
@Sydney Try putting wp_reset_query() before you call the loop. This will display the content of your page.
EDIT: Try this if you have some other loops that you previously ran. Place wp_reset_query(); where you find it most suitable, but before you call this loop.
@Marc B Thanks for the comment. Helped me discover this:
Just put this code in your content div
Page content can be displayed easily and perfectly this way:
Note:
In terms of displaying content - i) comments_template() function is an optional use if you need to enable commenting with different functionality.
ii) _e() function is also optional but more meaningful & effective than just showing text through
<p>
. while preferred stylized 404.php can be created to be redirected.This is more concise:
and this even more:
For people that don't like horrible looking code with php tags blasted everywhere...