Jump to content


Photo
- - - - -

More posts in category/archive pages


  • Please log in to reply
2 replies to this topic

#1 mcburkhead

mcburkhead

    Member

  • Members

  • 15 posts
  • Country: Country Flag

Posted 16 July 2011 - 08:00 PM

I currently set the post number at 7 through Settings>Reading which is great for the look of my home page.

But I want to show more posts on the video, photos, and general archives pages. Any ideas?

Please Login or Register to see this Hidden Content



Thanks ahead of time, I'm a convert from Arras theme to Platform and couldn't be happier.

#2 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 16 July 2011 - 10:15 PM

Set it to the maximum you will need in Settings->REading. Then you can incorporate a bit of code using the pagelines_inside_top_theloop or pagelines_before_theloop (i can't remember which, try both) hook. Your code will look like this: if (is_home()){ query_posts( 'posts_per_page=7' ); }

#3 mcburkhead

mcburkhead

    Member

  • Members

  • 15 posts
  • Country: Country Flag

Posted 16 July 2011 - 11:58 PM

Resolved! Thanks for the help. I'm pretty good at CSS but Hooks are new to me. Thanks again!