• Resolved dragongamer54

    (@dragongamer54)


    Hey.

    Currently I am making my own theme for my website but when I want to check it out it doesn’t display my content. I don’t know why it doesn’t display it correctly.

    This is my index.php code:

    <?php get_header(); ?>
        <div id="page">
    		<div id="page-bgtop">
    			<div id="page-bgbtm">
    				<div id="content">
                                    <div class="post">
    		 <h2  class="title"><?php the_title(); ?></h2>
    		                <div style="clear: both;"></div>
    			         <div class="entry">
                          <?php the_content('Read the rest of this entry ?'); ?>
    			         </div>
                            </div>
    		</div>
    				<!-- end #content -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    My content in WordPress consists mostly of pages.
    Please help me, I don’t know how to get it to work. I already checked the wordpress codex and numerous tutorials but nothing seems to solve my problem…

    I hope I gave enough information. If not, just ask for the other code ??

    Thanks in advance for any help!
    Greetings and a happy new year, dragongamer54

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter dragongamer54

    (@dragongamer54)

    Ok, so my code in the index.php file is something like this now. But it is still not working.

    <?php get_header(); ?>
        <div id="page">
    	<div id="page-bgtop">
    		<div id="page-bgbtm">
    			<div id="content">
    				<?php if (have_posts()) : ?>
                		<?php while (have_posts()) : the_post(); ?>
                        <div class="post">
    		<h2 class="title"><?php the_title(); ?></h2>
    		<div style="clear: both;"></div>
    				<div class="entry">
    	<?php the_content('Read the rest of this entry &raquo;'); ?>
                                </div>
                        <?php endwhile; ?>
    		<?php endif; ?>
                        </div>
    		</div>
    				<!-- End #content -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    what is working and what showing?

    link to your site?

    Thread Starter dragongamer54

    (@dragongamer54)

    As of the latest change to my code. Nothing is showing anymore its just showing me a blank content space.

    With the old code I was still able to see the title of the page in that content area.

    I don’t have a Live working website. It’s local (via Xampp).

    Thread Starter dragongamer54

    (@dragongamer54)

    Does no one else have any idea on this topic?

    PS: Happy new year everybody ??

    Thread Starter dragongamer54

    (@dragongamer54)

    It seems that when I make 1 post in WordPress it displays properly (on all pages).
    But my WordPress setup consist only out of pages…
    I’ve searched in the wordpress codex again, numerous times, but nothing seems to indicate the solution to my problem.

    Thanks again in advance for any help!

    Thread Starter dragongamer54

    (@dragongamer54)

    I took a look again at the original HTML source of my theme and cleaned up some code. After that I restarted creating the theme and it’s working like a charm now!

    Thanks for the help!

    Greetings dragongamer54

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Content doesn't display in own made theme’ is closed to new replies.