Site logo

Archived topic

More button with no more posts

5 replies · Started by Tara on August 6, 2015

Viewing posts 1–6 of 6

Hi Tom

On my custom query templates (with masonry) I'm now seeing a More button even though there aren't any more posts. That wasn't happening in June when I created them, so I think something's changed in a recent update. Any ideas for what I should look for?

Thanks

Tara

This shouldn't be happening - I'll test and get back to you.

Can't replicate this on my end.

Can you possibly link me to your site so I can take a look?

Hi Tom

I haven't switched my live site to GeneratePress yet, but here's one of my custom templates: http://pastebin.com/pA7yZDqL

This one uses the NS Featured Posts plugin to select specific items to show on the static front page (or falls back to the latest posts and pages), without pagination. But I also get the More button on my other custom template, which lists all the child pages.

I tried removing 'no_found_rows' => true, in case it was affecting the pagination, but it didn't make any difference.

I've done some more testing: I don't get a More button on categories and tags that only have one page of posts, or when I load multiple pages of posts until the end. But I do get a More button if I jump straight to the last page, eg /news/page/10/ (where /news/ is my posts page) or /category/books/page/3/. Can you replicate that on yours? It still happens when I activate the parent theme.

If I disable the masonry, I don't see any pagination on my custom templates, and I get the normal pagination on the last page of the blog archives.

Hope that helps.

Tara

Thanks for the additional info - will help me when testing.

I'll play with this and get back to you ASAP.

Nice catch - found and fixed for the next version :)

This archived topic is closed to new replies.