ThemeShaper Forums » Thematic

[closed]

Only 5 excerpts showing when set to 10

(1 post)
  • Started 10 years ago by beanfair
  • This topic is not resolved
  1. beanfair
    Member

    Under blog settings I have it set to 10 but the blog page is only showing 5.
    http://wineworldwarehouse.com/wineblog/
    I also tried setting posts_per_page in the code to 10 and it still only shows 5 posts. Any solutions? I have posted the code below

    <?php
    $args = array( 'posts_per_page=> 10', 'orderby' => 'ASC');
    $blog_posts = get_posts( $args );
    foreach( $blog_posts as $post ) :  setup_postdata($post); ?>
    	<h2 class ="blogpost_title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    
    	<?php
    if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
      the_post_thumbnail('thumbnail', array('class' => 'alignleft'));
    }
    	the_excerpt(); ?>
    
    <?php endforeach;
    wp_reset_query();
    ?>
    <div class="entry-content">
          <?php
                the_content();
                wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'thematic'), "</div>\n", 'number');
    
            edit_post_link(__('Edit', 'thematic'),'<span class="edit-link">','</span>') ?>
    	</div><!-- .entry-content -->
    				</div><!-- #post -->
    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.