Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
    
can you post your code?.... –  Sagive SEO Jan 19 '12 at 2:50
    
Can't, NDA. That said, the blog loop is largely stock. –  KevinM1 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. –  KevinM1 Jan 19 '12 at 14:49
show 1 more comment

1 Answer

up vote 2 down vote accepted

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

share|improve this answer
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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