Zidalgo Wordpress Forums | Number of posts on home page

You must be logged in to post Login Register

Search Forums:


 






Number of posts on home page

UserPost

3:40 am
April 16, 2009


mistercyril

Member

posts 7

1

Hello,

How can I define the number of posts to display on the home page, between the First post and featured post?

Thanks,

C.

8:48 pm
April 23, 2009


admin

Admin

posts 173

2

This is defined through the regular wordpress "Reading" options page in your /wp-admin/ – You can set how many posts are displayed on your index and blog pages. The theme will follow this setting.

8:09 pm
April 24, 2009


PublicMic

Member

posts 12

3

Is it possible to keep a certain catagory of posts from displaying in the area between the first post and the featured post?

8:51 pm
April 24, 2009


admin

Admin

posts 173

4

Post edited 4:52 pm – April 24, 2009 by admin


Hi Public,

This should be possible with a bit of editing, try this:

Open index.php template file for newsplus, and find


  <?php if (have_posts()) : ?>

  <?php $count=0; while (have_posts()) : the_post(); if(!($firstpost == $post->ID)) : ?>


add the folowing line below above lines:

<?php if (in_category('30')) continue; ?>

replace the "30″ with whatever category ID number you want to exclude from the posts.

11:01 pm
April 24, 2009


PublicMic

Member

posts 12

5

Ah, nice! Thank you. Very helpful.

Is there a way to keep headlines from getting cut-off in that same section between the top post and the featured banner?

12:33 am
April 25, 2009


PublicMic

Member

posts 12

6

And while you're at it, another foolish one…

How can I shrink the font size for the blog title in the header?  I need to fit a title 18 characters long.  Right now it cuts off the last 9 or so characters.  Is it possible to make all 18 fit?

Thanks again for your help.