• Hi, I am slowly getting the hang of WP, but I’m still at very beginner’s stage. I have learnt how to create my own custom theme and make new pages, but now my problem is, whenever I go to Dashboard Admin->Page to edit a specific page I created, I enter some text and Publish. But when I check my locally hosted wordpress site, the div content (the content class selector in my style.css) still shows nothing. What am I missing? I don’t know the WP function to pull the content from the WP database whenever I enter some text in a certain page.

    [please use the code button to mark any code in your topic – for any code over 10 lines, please use the pastebin]

    Thus far this is what I have:
    index.php
    =========

    <?php get_header(); ?>
    
    <?php get_footer(); ?>

    header.php
    ==========

    [code moderated - please use the pastebin]

    footer.php
    ==========

    </div><!-- END content-->
    
    	</div><!-- END contentBox (holds div content, div sidebar later-->
    
    </div><!--END container div-->
    
    <div class="footer">
    		<h6><?php bloginfo('name')?></h6> powered by WordPress
    	</div>
    
    </body>
    
    </html>

    Any help appreciated!

Viewing 1 replies (of 1 total)
  • Please read the forum rules about posting code.

    From what I can see you have no loop so no pages or posts are going to be shown – just your header and footer.

    HTH

    PAE

Viewing 1 replies (of 1 total)

The topic ‘How to display content’ is closed to new replies.