WordPress.org

Ready to get started?Download WordPress

Forums

Any Idea why my Blog Section doesn't work? (4 posts)

  1. Stevedawg
    Member
    Posted 1 year ago #

    I'm making a custom wordpress theme for a client. Any help as to why my blog page isn't pulling the posts? It can be viewed at http://www.picturesquestudios.com/servwiz/blog

    Thanks,

  2. 360
    Member
    Posted 1 year ago #

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

  3. Stevedawg
    Member
    Posted 1 year ago #

    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(); ?>

  4. ronangelo
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.