Forums

Blog section pulls static site content, not posts (6 posts)

  1. theenrighthouse
    Member
    Posted 9 months ago #

    So, on http://www.dianewolkstein.com I had set up a static front page and a separate blog section. The front page was called "Welcome", the blog page "Blog". I did this by using the simple method of creating two pages, filling "Home" with content, leaving "Blog" empty, and then, via the "Reading Setting" assigning each under the Static Page option. This worked like a charm (as it should) until today I upgraded WP from 2.9.1 to 3.2.1. Everything in the update worked great, ASIDE from one fact... my blog section no longer pulls in my posts:

    Now, the "Blog" section no longer displays my posts, but rather imports the content from the static page called "Welcome". It is, in other words, pulling the content from my static page.

    I have seriously looked everywhere for a similar problem but cannot find any mention of this issue anywhere. I've checked my template files (WP's main index, as well as my theme's custom templates) and cannot find anything unusual in the loop or anything.

    Any ideas? Will post any code you need. Please help!

    -Mark

  2. Samuel B
    moderator
    Posted 9 months ago #

    have you tried re-saving your permalinks?
    dashboard - settings - permalinks

  3. theenrighthouse
    Member
    Posted 9 months ago #

    Hey Samual, thanks for the suggestion. Just tried that, but unfortunately that has no effect. My best guess was something to do with how the loop was formatted in either the main-index template or the theme template, but both seem totally normal (plus I don't understand why upgrading WP would have caused this issue).

    You can see the issue by visiting http://www.dianewolkstein.com/blog btw. Click on one of the category links on the right, and you can see that the posts are clearly still there and available. It's just that they aren't being pulled on the main blog page of the /blog directory.

  4. theenrighthouse
    Member
    Posted 9 months ago #

    My main index template file looks like this, by the way:

    <?php get_header(); ?>
    
        <div id="content" class="col-full">
    		<div id="main" class="col-left">
    
    			<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("paged=$paged"); ?>
                <?php if (have_posts()) : $count = 0; ?>
                <?php while (have_posts()) : the_post(); $count++; ?>                        
    
                    <div class="post">
    
                        <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
                        <p class="date">
                        	<span class="day"><?php the_time('j'); ?></span>
                        	<span class="month"><?php the_time('M'); ?></span>
                        </p>
    
                        <?php woo_get_image('image',490,200); ?>
    
                        <div class="entry">
                        	<?php the_content(); ?>
                        </div>
    
                        <div class="post-meta">
    
                        	<ul>
                        		<li class="comments">
                        			<span class="head"><?php _e('Add a Comment', 'woothemes') ?></span>
                        			<span class="body"><?php comments_popup_link(__('0 Comments', 'woothemes'), __('1 Comment', 'woothemes'), __('% Comments', 'woothemes')); ?></span>
                        		</li>
                        		<li class="categories">
                        			<span class="head"><?php _e('Categories', 'woothemes') ?></span>
                        			<span class="body"><?php the_category(', ') ?></span>
                        		</li>
                        		<li class="author">
                        			<span class="head"><?php _e('Date', 'woothemes') ?></span>
                        			<span class="body"><?php the_time('F j, Y') ?></span>
                        		</li>
                        	</ul>
    
                        	<div class="fix"></div>
    
                        </div><!-- /.post-meta -->
    
                    </div><!-- /.post -->
    
    			<?php endwhile; else: ?>
    				<div class="post">
                    	<p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p>
                    </div><!-- /.post -->
                <?php endif; ?>  
    
                    <div class="more_entries">
                        <?php if (function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
                        <div class="fl"><?php next_posts_link(__('&laquo; Older Entries', 'woothemes')) ?></div>
    					<div class="fr"><?php previous_posts_link(__('Newer Entries &raquo;', 'woothemes')) ?></div>
                        <br class="fix" />
                        <?php } ?>
                    </div>		
    
    		</div><!-- /#main -->
    
            <?php get_sidebar(); ?>
    
        </div><!-- /#content -->
    
    <?php get_footer(); ?>
  5. theenrighthouse
    Member
    Posted 9 months ago #

    Anyone? This is the first issue I've come across in years that I just can't fix on my own. I am totally at my wits end with this :). Any ideas would be gratefully received.

  6. theenrighthouse
    Member
    Posted 9 months ago #

    (EDIT: Sorry... didn't mean to post another message... accidentally resubmitted the template code)

Reply

You must log in to post.

About this Topic