WordPress.org

Ready to get started?Download WordPress

Forums

Reading Options -- Posts Per Page (34 posts)

  1. srdusky
    Member
    Posted 9 years ago #

    It seems that the number you set under the Reading Options for the maximum number of posts to show per page causes a bug. Try viewing all of the entries you made in 2004 in one single page. Are you able to view all of them? Not me. I'm shown the last 35 entries made in 2004; 35 is the number I set under the Reading Options.

    I already tried switching to one of the themes that come with WordPress 1.5, to make sure my customized index file wasn't the culprit. The problem was still there.

  2. NuclearMoose
    Member
    Posted 9 years ago #

    I'm not understanding something here. If you set the option value to 35 and then 35 posts actually show up, then what is wrong?

  3. oriecat
    Member
    Posted 9 years ago #

    Glad I'm not the only one who didn't understand. I almost posted the same thing earlier but thought maybe I was missing something.

  4. srdusky
    Member
    Posted 9 years ago #

    Well, if someone goes to the folowing URI:

    http://www.duskyspad.com/rantsinbits/archives/2004

    They should be shown ALL the entries made in 2004. Instead, the number of entries shown is limited to the number set in Reading Options. It worked fine in my installation of WordPress 1.2: visitors were shown all of the month's entries if they visited archives/year/month and all of the year's entries if they visited archives/year.

    I hope that helps.

  5. davestinner
    Member
    Posted 9 years ago #

    If you want them to be able to see more than 35 posts, why don't you set the reading option higher?

  6. ceo
    Member
    Posted 9 years ago #

    *scratches head* I think I'm confused....

    But I think there's a misunderstanding on both parts. When you view the archives you do see the posts from that corresponding month, year, or category - but since you set your reading options to show 35 posts, that's what the page will load with. If you want to view older posts beyond the first 35, you'll have to use the nav links to go between pages. If you want more posts on the page, just set the number higher. (Though 35 is kind of a lot, imho.)

    Are you saying you want ALL of those posts from 2004 to show up on one continuous (very long!) page? Because I don't know how to do that...! Or if it's even possible.

  7. srdusky
    Member
    Posted 9 years ago #

    If you go to http://weblogtoolscollection.com you're shown the most recent 20 (or so) entries. But, if you visit http://weblogtoolscollection.com/archives/2004 you're shown ALL entries made in 2004. That's the way my blog used to work. A predetermined number of entries/days are shown when displaying the main page (the number is set at admin settings), but the setting has NO bearing on how many entries are shown when one is viewing an archived month or year worth of entries. Think about it... when a visitor clicks on "December 2004"... do they expect to see the last x-entries (or x-days) for that month, or ALL entries made that month?

    The way it's working for my blog now, I can't set the posts-per-page to be too low because then when people click on "October 2004" (for example) they are shown only the last x-number of entries that month and have no access to the first entries made that month. I don't wanna set it too high because then the main page takes longer-than-I-desire to load. But how about setting it low for the main page and a flexible, unspecified amount when viewing an archived month or year? That's how it used to work for me in Mingus.

  8. srdusky
    Member
    Posted 9 years ago #

    Alrighty then...

    I've set the max number of posts to display to... 8. I've re-enabled the nav buttons (previous and next). Guess I must get used to this.

  9. jennmiller
    Member
    Posted 9 years ago #

    I'm confused, too. In 1.2.2, I had my main page set to display the last 7 entries, but my "Categories" and "Archives" would should all posts in that category or month (they weren't controlled by the limit). As it is now with 1.5, no one can look at posts made the first 3 weeks of each month, for instance. I'll use prev and next if this can't be fixed, but I don't know how to do so. Is it a plugin?

  10. hanover
    Member
    Posted 9 years ago #

    This plugin will allow you to set a different number of posts per page for the main page, category pages, date pages, etc. I'm pretty sure it's exactly what you're looking for.

    http://rephrase.net/miscellany/05/perpage.phps

    I've tested it with 1.5 and it works perfectly. I'm going to use it myself just as soon as I find a way to keep it from messing up the hacks I've made to Nicer Archives.

  11. srdusky
    Member
    Posted 9 years ago #

    I installed the plug-in and it works. As an added bonus, when you're shown an archived day, month, or year the entries are shown in ascending order (i.e. if showing a year, january entries are at the top and december entries at the bottom). I'm not used to it being that way, but blogs make more sense that way.

    Good find, Hanover.

  12. elizdelphi
    Member
    Posted 9 years ago #

    This is just what I need for my site, but I am totally new to WordPress and CSS and PHP as of yesterday, and facing a steep learning curve as I customize my site (www.goodponies.com), though I am liking WP as I become a little less scared of it. Which file do I insert this code into, and where in the file should it go? I have WordPress 1.5. Thank you so much if you can help me!

  13. clea
    Member
    Posted 9 years ago #

    elizdelphi: I think you just have to save the file, change the file extension to .php instead of .phps, and upload it to yous plugins directory on your server.

    From there you can activate it and set different posts per page...

  14. rockinfree
    Member
    Posted 9 years ago #

    Thanks for the link to the plugin -- I was having the same post-number problem , and it works great!

  15. moshu
    Member
    Posted 9 years ago #

    Just a side note for srdusky:
    In your post above you are totally wrong about the number of all posts an webtoolscollection site.
    Take a look at this page: http://weblogtoolscollection.com/narchives.php to have an idea that even just the list of the titles is much, mucj longer than what you showed as "all" 2004 posts :)

  16. lareina1045
    Member
    Posted 9 years ago #

    I have been having the exact same problem!!!

    I want 10 posts on my main page and all posts for a month on the archives page. I am using wordpress through blogsome.com though... Im not sure how to use the plugin. Is there a special way to upload it to the plugins. Please help.

    http://lareina1045.blogsome.com/

  17. lareina1045
    Member
    Posted 9 years ago #

    P.S I have tried to upload the file but it says PHP files are not allowed.

  18. Kafkaesqui

    Posted 9 years ago #

    Sorry lareina1045, but I believe you can only suggest a plugin to be installed on blogsome. And considering the nature of the plugin linked to above...

  19. srdusky
    Member
    Posted 9 years ago #

    Moshu, I guess you're right, I used a bad example. Hmm, but I remember testing it. Is it possible they upgraded to 1.5 and lost the ability to show ALL entries regardless of the "max number of entries" setting?

  20. infovore
    Member
    Posted 9 years ago #

    This is a pretty major problem, I'd say; looking forward to seeing if it actually gets fixed or not. For now, I shall hack around it, like the rest of us.

  21. ColdForged
    Member
    Posted 9 years ago #

    It's a design decision. It won't get "fixed" because that's the developers' intent. Posts per page gets propogated through all types of pages, from main to archives which is far more consistent than the "implied all posts" in archives. Could the core be modified to provide options for number of posts to display for each category type? Sure. But why when there's a way to do it that is customizable and doesn't affect the core?

  22. HerrRau
    Member
    Posted 9 years ago #

    Thanks for the plugin, it came in very handy. I was used to being able to do this in WordPress 1.2 and found it quite important: This way, I can get a complete index/list of all my entries in a particular category. Just the linked titles, nothing else.

  23. futb0l
    Member
    Posted 9 years ago #

    Hmm.. I set the reading options to 1 day, and I used the plug-in (custom posts per page) ... but now it screws everything up. I set the custom post per page to 10, but the posts shown per page are random? or maybe it's 10 days worth of posts?

    I don't mind having 10 days worth of posts, but it screws up the page navigation system, it still display "Previous Entries" even though there are none.

  24. infovore
    Member
    Posted 9 years ago #

    It's a design decision. It won't get "fixed" because that's the developers' intent. Posts per page gets propogated through all types of pages, from main to archives which is far more consistent than the "implied all posts" in archives.

    Perhaps, ColdForged, perhaps - but removing functionality and then justifying it with "it's a design decision" just doesn't cut it. It could be quite easily fixed - the developers leave this functionality as the default but offer an option to return to a) how it works in other blogging engines and b) how it worked in 1.2 .

    You can't justify removing functionality by saying 'we like it like that'. Well, you can, but it's a pretty immature product if that's the case. I hate nothing more than upgrading a piece of software and spending a day installing hacks to restore old functionality.

    And hey, I'm a big fan of a lot of the new features in 1.5. It's stupid little things like this that really irk me about WordPress.

  25. dtweney
    Member
    Posted 8 years ago #

    I agree that it's annoying you can't easily change the number of posts per page. For my site (http://tinywords.com) I'd like to be able to show a single day on the home page, but many more than that in the archives.

    The "posts per page" plugin works fine for me, but it causes problems with the WordPress admin interface... for instance, I get blank pages after updating templates or editing posts. Turning off the plugin makes the admin work correctly again. Any ideas why this is happening? I like the functionality, but the problems it causes with the admin interface are not acceptable.

  26. Waldo Jaquith
    Member
    Posted 8 years ago #

    It's amazing to me that this hasn't yet been fixed in WordPress. But I'm grateful for the plugin.

  27. WunderKraut
    Member
    Posted 8 years ago #

    I have not tried the plug-in yet. I get scared using those things. The question I have is that I do not see the next/previous buttons when you click in my archives.

    Like many of you, I want only the last x-number of posts on the main page but all the posts for the month in the archives. I may have done something to my index.php that means I do not have those links. Where do I find the next/previous links for my archives?

  28. Dgold
    Member
    Posted 8 years ago #

    http://mattread.com/archives/2005/03/custom-query-string-plugin/

    This plugin solved this question for me, and has great flexibility to set categories, archives, and searches, and Home, to the exact number of post or days you choose for each.

  29. Daisyhead
    Member
    Posted 8 years ago #

    This plugin will allow you to set a different number of posts per page for the main page, category pages, date pages, etc. I'm pretty sure it's exactly what you're looking for.

    http://rephrase.net/miscellany/05/perpage.phps

    Is there a way to tweak the output of this plugin so that the newest posts are at the top in archive pages instead of the oldest post?

    Thanks!

  30. Beel
    Member
    Posted 8 years ago #

    I would imagine changing ASC to DESC would suffice.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.