WP 3.2.1

Changing the max number of posts to show on each page via Settings->Reading isn't working. Could this reported bug be the culprit?

  • can you post your code?.... – Sagive SEO Jan 19 '12 at 2:50
  • Can't, NDA. That said, the blog loop is largely stock. – Major Productions Jan 19 '12 at 3:01
  • you probably use some custom theme with a function that override this . it can be nulled in many ways . to test if this is the case, switch to default theme and see if it works . – krembo99 Jan 19 '12 at 12:56
  • @krembo99 is probebly right... thats why without changing the theme code itself (we need to see it) it wont work.. the inTheme definition over-rules the wordpress backend – Sagive SEO Jan 19 '12 at 13:27
  • Unfortunately, the custom theme is the only theme installed. I also came onto this project late, and don't have the authority to do what you suggest. It's not my project, per se. I'm just a subcontractor. – Major Productions Jan 19 '12 at 14:49

If it doesn't work then there must be some problem or overwrite in your custom theme,

add this code in your index.php or where ever you want to show the custom number of posts,

query_posts( $query_string . '&posts_per_page=1' );

change '1' to any number you want

  • 1
    this will work, but it is quite dangerous for someone who does not know his theme - it can change other queries that depends on that ... – krembo99 Jan 21 '12 at 18:35
  • 1
    this isn't dangerous :) go ahead and give a try :) – Sufiyan Ghori Jan 21 '12 at 18:51
  • I agree with Krembo99 - although , like he pointed out - it WILL work - is some situations a global blanket change like this can also change other features - especially on more complicated themes. – user13279 Jan 22 '12 at 2:49
  • for standard-loops in normal archive template files it's a great solution. – digitaldonkey Apr 11 '12 at 14:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.