• HI all,

    I am trying to switch themes and the new theme I want to use seems to only list one post on it’s home page.

    What line or lines of code control how many posts (or excerpts )appear on my home page?

    thanks

    A

Viewing 2 replies - 1 through 2 (of 2 total)
  • Normally, the Blog pages show at most in Administration > Settings > Reading controls the number of posts to display. But your theme may have a loop to display that one post.

    Might have to look for query_posts(), or get_posts(), or new WP_query, and an argument such as posts_per_page=x or showposts=x that limit the number of posts to display.

    You might also consider contacting the theme author.

    Thread Starter ashamis

    (@ashamis)

    Thank you for this info, it’s very helpful.

    In looking at this further, I see that new theme I am trying to use seems to list full versions of all my posts, right there in the home page. Any idea why it would do that, and how to solve it?

    thanks again,
    A

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to set number of posts on index page’ is closed to new replies.