Support » Themes and Templates » Any Idea why my Blog Section doesn't work?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 360

    (@360gradfoto)

    hello,
    can you please post the template source?
    it should contain something like this:
    http://codex.wordpress.org/The_Loop#Loop_Examples

    I think this is it:

    <?php get_header(); ?>

    <div id=”mainContent”>
    <div id=”primary”>
    <div id=”content” role=”main”>

    <?php if ( have_posts() ) : ?>

    <?php else : ?>

    <article id=”post-0″ class=”post no-results not-found”>
    <header class=”entry-header”>
    <h1 class=”entry-title”><?php _e( ‘Nothing Found’, ‘twentyeleven’ ); ?></h1>
    </header><!– .entry-header –>

    <div class=”entry-content”>
    <p><?php _e( ‘Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.’, ‘twentyeleven’ ); ?></p>
    <?php get_search_form(); ?>
    </div><!– .entry-content –>
    </article><!– #post-0 –>

    <?php endif; ?>

    </div><!– #content –>
    </div><!– #primary –>

    </div><!–end#mainContent–>

    <?php get_footer(); ?>

    The Loop is missing. It should be placed in between
    <?php if ( have_posts() ) : ?> and <?php else : ?>
    http://codex.wordpress.org/The_Loop

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Any Idea why my Blog Section doesn't work?’ is closed to new replies.