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 have a static header, sidebar and footer and then a varying content for single.php. What is the right approach to put contents in the div=content part? Say I have 3 different pages (article, stuff, registration) with this template. Can I save them in a php file and then call them like how "get_header()" functions?

    <?php get_header(); ?>

    <div id="main">

    <div id="content">
    SOME DYNAMIC AND VARYING STUFF HERE
    </div>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

Thanks.

share|improve this question
1  
possibly start by reviewing codex.wordpress.org/Theme_Development; codex.wordpress.org/The_Loop –  Michael Apr 20 '13 at 12:37
    
That is where the post body would normally go-- the part you add in the large Visual/Text box on the post edit screen. Are you trying to do something different? –  s_ha_dum Apr 20 '13 at 14:17

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.