• cowboyboo

    (@cowboyboo)


    Hi there! I am in the process of moving my site over to the block editor, and I am running into an issue with the query loop in one of my templates. I fear this has been asked and answered but none of the solutions I’ve stumbled across seem to be working for me.

    WordPress version: 6.8.1
    Theme: Twenty twenty-five

    What I am trying to achieve: A template that displays up to 24 project posts per page in a gallery view, with the projects filtered by type via the site navigation (e.g., “/project-type/illustration/” and “/project-type/printmaking/” would return a different subset of projects).

    I created a new “Project Type Archives” template with the query loop type set to “default.” This works fine except that it limits the results to 10 projects per page. When I toggle the query type to “custom” I can effectively increase that, but then it’s not clear how to keep it “taxonomy agnostic” in such a way that only the right type of projects displays via the navigation links (it just returns all projects irrespective of type).

    I tried increasing the number of posts to display under the general WordPress reading settings, but that didn’t seem to have any effect. I’m finding various resources online that refer to a set of query loop display settings (e.g., this image from this article on Jetpack.com that shows a menu including items per page, offset, and max pages), but I am not seeing those options. Here is what I see:

    … and the “more” link at the far right of the floating menu, and the one next to “Settings” in the settings bar on the right don’t seem to offer anything relevant to this issue. (FWIW the options I see are identical when editing the “All Archives” template.)

    Any guidance greatly appreciated! Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • lisa

    (@contentiskey)

    are you using any plugins or custom code that might be changing the display options available for you? have you tried deactivating all plugins and custom code?

    Thread Starter cowboyboo

    (@cowboyboo)

    Thanks Lisa — I had already deactivated most of my plugins, but went ahead and deactivated the last two (woocommerce, jetpack) just to make sure, but still having the same issue. I re-activated Jetpack after checking that since I can’t test portfolio project posts without it.

    Deactivating/reactivating Jetpack, of course, hosed all my project templates 😀 so I deleted the ones I’d already created and started from scratch, but I’m still not seeing any display options for any query loops in any templates. I did come across an old post that suggested manually forcing the post count via the code editor, but it looks like it’s correct there, so it’s pulling the 10-post limit from somewhere else I guess…? This is what the code looks like:

    <!-- wp:query {"queryId":11,"query":{"perPage":24,"pages":0,"offset":0,"postType":"jetpack-portfolio","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"parents":[]},"align":"full","layout":{"type":"constrained"}} -->

    lisa

    (@contentiskey)

    you can use a plugin like https://wordpress.org/plugins/health-check/ to test without impacting your public site or if your host offers a staging site using that could be helpful for testing or export your site into something like instawp.com for testing

    maybe there is something related to your theme that is impacting?

    [when I create a new site no plugins and twenty twenty five theme (not using jetpack) and use the query loop block – I have the option for choosing # of posts in query loop block. I inserted 5 posts and can vary the # of posts displayed using the controls in the sidebar area of the editor]

    Thread Starter cowboyboo

    (@cowboyboo)

    Yeah, what you describe is what I expected to happen, too. And if it’s Jetpack that is causing the issue, that’s a bummer, since I just created all my content as Jetpack project content types! I was hopeful there was an obvious solution, like a feature I had failed to enable or something. I’ll have to figure out a workaround, sounds like.

    Thanks for your help, Lisa! And yes, all of this is happening in my staging environment, so even when things go sideways it could be worse.

    lisa

    (@contentiskey)

    if you think the issue might be related to jetpack plugin, ask the jetpack team for guidance: https://jetpack.com/support/

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Query loop display settings not available’ is closed to new replies.