1

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-->
Zeeshan
  • 75
  • 1
  • 2
  • 7
  • Where is your real code for the template ? – The Alpha Dec 08 '13 at 21:08
  • I don't see any custom fields in your code? `the_content()` is currently the only thing in your loop. – Wez Dec 16 '13 at 15:01
  • It is an unfinished page. i'm using custom fields later on. How ever this code outputs '' two times. Once at the top of everything and once at the position at which it is placed in the above code. – Zeeshan Dec 16 '13 at 18:54

0 Answers0