• Thanks to the advice of a good WP supporter my blog displays in chronological order so it can serve as a journal of my trip.

    see https://sprangleblog.com/

    But apparently that modification is overridding the WP Option configuration that limits how many posts appear per page. My posts are one long scroll.

    How can I limit the nnnumber of posts per page?

    TIA

Viewing 8 replies - 1 through 8 (of 8 total)
  • It would be helpful to see the code in your theme’s index.php before guessing at an answer (since it sounds like it must’ve been customized).

    Could you post the source at https://wordpress.pastebin.ca/ and then share the link here? Then a volunteer could take a peek.

    Thread Starter jerseyjoe

    (@jerseyjoe)

    Hmmm – for some reason, I cannot open that pastebin link. The page never loads.

    So I have put the entire Journalized Sand theme from my blog onto my own server at:

    https://www.buildinghosting.com/WP_theme

    Hope that helps

    Alas, nope. That’s not a good way to look at PHP source (since the server will want to process it).

    pastebin.ca seems down, have a try with https://wordpress.pastebin.com/ instead?

    OK – I’m back home again and back on track. Per the above suggestion, the index file for the theme of SprangleBlog.Com has been posted for inspection at:

    https://wordpress.pastebin.ca/242554

    If someone could tell me how to force a limit of 8 posts per page, I’d greatly appreciate it.

    TIA

    @joehark – how did you make the change to display in chronological order? At first glance, I’m not seeing anything in your index.php to cause that. Is the change in a different theme file?

    No, the mod was not installed in another theme.

    Give me a bit to recall and note where I made that change.

    OK – I think I know what is controlling the order of posts – and I’m guessing it also is overriding the number of posts setting.

    I am using a plug-in called “Custom Query String.” I could paste the code but you can just as easily see it at the source. Here’s the commented out header:

    QUOTE

    Plugin Name: Custom Query String
    * Version: 2.7
    * Plugin URI: https://mattread.com/projects/wp-plugins/custom-query-string-plugin/
    * Description: Change the number of posts displayed when viewing different archive pages.
    * Author: Matt Read
    * Author URI: https://www.mattread.com/

    END QUOTE

    I think I need to tweak the settings and the best source for that would be the author of the plugin. I’ll write to him now.

    So put this issue on hold until I report back here.

    What exactly was the original question?
    If you use that plugin – you should be able to set the number of posts for EVERY page/view/etc.
    On the plugin’s admin page you first select a condition, then set the number of posts, the order… and finally click ADD.

    What’s so complicated?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘how to limit posts per page’ is closed to new replies.