I'm very new to WordPress, but I'm currently doing work on a site built on the platform. I'm making my way through, but I've run into a bit of a problem.
I'm trying to add content from the text editor of the site's blog page
, which uses the standard index.php template. However, when I use <?php the_content(); ?>
like other pages use, it returns the content of the latest post
. Is there a way to get the content from the page editor instead?
I've been looking all morning without really finding anything satisfactory. Any advice would be greatly appreciated!
<section id="primary" >
<?php the_content(); ?>
<div class="content" role="main" data-target="index" >
<?php if (have_posts()) : ?>
<?php get_template_part('inc/loop', get_post_type() ); ?>
<?php else : ?>
<?php get_template_part('inc/content', 'none' ); ?>
<?php endif; ?>
</div><!-- end content -->
</section><!-- end primary -->