Site logo

Archived topic

Archive using Dynamic content element

1 reply · Started by Dan on March 10, 2022

Viewing posts 1–2 of 2

Hi,
I would like to create an archive page to display posts only from specific categories, and to have a title between each category.
For example:
Category A
-- Child 1 of category A
-- Child 2 of category A

In the Archive page I would like to have the below layout:
Title: Child 1 of category A
post 1
post 2
post 3
etc...

Title: Child 2 of category A
post 1
post 2
post 3
etc...

Currently, all the posts are listed in one list. What options do we have to manipulate the archive layout when it comes to sorting by categories and adding titles before each category?

Thanks!
Dan

Hi Dan,

An Archive page is an index page automatically generated by WordPress so it's not possible to modify it and achieve what you have in mind.

One option for now is still to create a static page with WPSP unto the posts loop block is ready in GenerateBlocks.

Or you can look into if it's possible with the query loop block from WP core:
https://wordpress.org/support/article/query-loop-block/

Hope this helps :)

This archived topic is closed to new replies.