• As the title suggests I would like to limit the number of recent posts displayed on the twentyeleven showcase template. Ie have the main post plus list of say 3 other recent posts below. I have had a look at the template but couldnt figure out how to make this happen. Can anyone point me in the right direction? thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Tim69

    (@tim69)

    anyone?

    Under the setting-tab you can change this. There you can set the maximum number of posts that you want to show on your showcase page.

    Thread Starter Tim69

    (@tim69)

    Hi thanks for the reply.

    Unfortunatly that setting effects the number of posts displayed on the post page as well. I would like to independantly alter the number of posts displayed in the showcase list. Is this possible? I thought there might be some way to limit this in the template?

    I wish I could help you, but not an expert enough to give you the answer. I hope you get your sollution from someone else.

    found it! you have to first bring in a showcase.php file to your child theme.

    then at about line 160, you should see something like this:

    // Display our recent posts, showing full content for the very latest, ignoring Aside posts.
    					$recent_args = array(
    						'order' => 'DESC',
    						'posts_per_page' => 10,
    						'post__not_in' => get_option( 'sticky_posts' ),
    					'post_type'=>'post',
    						'tax_query' => array(
    							array(
    								'taxonomy' => 'post_format',
    								'terms' => array( 'post-format-aside', 'post-format-image', 'post-format-link', 'post-format-quote', 'post-format-status' ),

    the “posts_per_page” line you would have to add to that array. In this case it would show 10. Change that number to whatever you would want.

    Hope this helps you, or whoever else may be looking for a solution.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘twenty eleven showcase limit number recent posts’ is closed to new replies.