Dymanic code for Previous / Next archive pages

I’m building my blog landing page and individual blog post pages from scratch. I’ve figured out the Dynamic Content code for “next post” and “previous post”, and those are now working fine on my single blog post page layout.

But in the Dynamic Content modal, I don’t see any obvious options for the archive blog landing page – that is, “next [#] posts”. So if the blog landing page is set to show the 8 most recent posts (excerpts, thumbnail featured images, etc.), I want to create a link at the bottom of the page that pulls up the 8 next most recent posts, etc.

Thanks!

Hello @mgiraud,

Thanks for writing to us.

I would suggest you set the Looper consumer items as “All” and let the post count control by Settings—>Reading —>Blog pages show at most.

Insights-Layouts-Pro

Now Add the pagination element

Insights-Layouts-Pro

Hope it helps
Thanks

Sorry if I wasn’t clear. My understanding is that the Pagination element only works for pre-defined templates. I built this layout from scratch, so when I tried using that element, it only produces a gray box.

That’s why I’m having to build the back/next myself. What I’m looking for is the Dynamic Content code for “next set of posts gathered together on an archive page,” basically.

That is, the code to pull the next single page post is

{{dc:post:title post="prev"}} .

That works for linking to the next single page post. What I need is what that would be for “next set of 8 (or whatever number) post thumbnails.” In other words, you’re on the blog landing page I sent you, which shows you the first 8 posts in a masonry grid. You click a link at the bottom of the page ( {{dc:post:title something?}} ) and you see the next 8 posts presented in the same layout.

So what would be the code for that?

Hi @mgiraud,

Regretfully, there is no such dynamic content tag for pointing the next set of posts as you are expecting. And you are correct that the Pagination elements work only on pre-defined templates.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.