Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am working in a Child theme on a page with a custom template. That custom template is not displaying any text that I enter into the wordpress editor. How do I "call" that text and display it in my custom template?

Is there something like

<?php get_editor_text(); ?>

I just need a way to display the text inside the editor box on the custom teplate page. How would I accomplish this in wordpress?

share|improve this question
    
Do you mean the_content(); or some other piece of text? Please provide more information. –  GhostToast Oct 31 '13 at 19:22
add comment

3 Answers

You do it like in any other template. the_title() for the title, the_content() for the content etc.

share|improve this answer
add comment
up vote 0 down vote accepted

I was able to fix my problem. In order to access the content I used --

<?php /* Start the Loop */ ?>
<?php while(have_posts()) : the_post(); ?>
<?php the_content();?>
<?php endwhile; ?>

By adding that snippet of code directly into my template page I was able to easily add the content from the visual editor. I had attempted to use "the_content()" but this was nonfunctional because I was not within the loop.

The loop is an integral part of Wordpress and more information on the Loop can be found at http://codex.wordpress.org/The_Loop .

share|improve this answer
add comment

do you mean <?php the_content() ?> ->the_content() or do I misunderstand your question?

share|improve this answer
    
When you want to ask for more information from the OP or you are unsure about the question, add a comment, not an answer. –  Alex Dumitru Oct 31 '13 at 19:25
1  
i am not allowed yet. MAN –  user9 Oct 31 '13 at 19:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.