Jump to content
Sign in to follow this  
shylmysten

Posts per page...

Recommended Posts

shylmysten    0
shylmysten

How do I set how many posts per page I have in blog setup? I opened the template.postloop.php file inside of platformpro folder and it is showing this:

$count = 1;  // Used to get the number of the post as we loop through them.
		$clipcount = 2; // The number of clips in a row
	
		$post_count = $wp_query->post_count;  // Used to prevent markup issues when there aren't an even # of posts.
		$paged = intval(get_query_var('paged')); // Control output if on a paginated page
	
		if(is_admin()) query_posts('showposts=1'); // For parsing in admin, no posts so set it to one.

Showposts=1 - so why am I still getting two posts per page? Would a sticky post override the showposts setting, and create two posts per page? Thanks!

Share this post


Link to post
Share on other sites
Guest Guest   
Guest Guest

Are your referring to how many posts are displayed on the homepage? This is done under the WordPress "Readings" settings, you do not need to modify template.postloop.php unless I am misunderstanding what you're wanting to accomplish.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×