Wordpress Placing of the_content() function in custom page

483 views Asked by At

I have made a custom page in my wordpress theme. The page is working fine. But I am facing trouble using the_content(); function. I am using a few custom fields to display some content on the page and I want the content of the page, that is entered in the Editor, to be displayed on a specific place on the page. But Whatever I enter in the Editor, gets placed at the top of the page above all other content.

EDIT:

Here is the full code:

    <?php get_header(); ?>
 <div id="main-content">
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php the_content(); ?>
    <?php endwhile; ?>
    <?php endif; ?>
    <div class="mobile-top">
    <a href="<?php the_permalink(); ?>">
        <p><?php the_title(); ?> price</p>
        </a>
        </div>
        <?php comments_template(); ?>
      </div>
</div> <!--main-content Ends-->
0

There are 0 answers