Set up a second post-like section for case studies in the STAX theme?
-
I would like to create another section that works exactly like the posts section of the Stax theme but it would be for my case studies. I tried using the portfolio section but it automatically makes the URL for the pages /portfolio/title. I need it to be /case-studies/title. I am also having trouble creating a sidebar that pulls all of the project types for searchability, like the current blog post sector does for categories.
The blog I need help with is: (visible only to logged in users)
-
Hi there!
I’ll be happy to help you with this.
Using the portfolio projects is a great idea, actually. But it will have the
/portfolio/in the permalink assigned to it. If you want the/case-studies/permalink, there are three options I can think of:- Create a page with the
case-studiesslug. Then create more pages (one per each case study), and make thecase-studiespage the parent page so that they will have the/case-studies/part in their permalink.- If you do this, you’ll need to manually insert the page links on the Case Studies page using a collection of column and image blocks. The Media & Text is an excellent block to use in this case, too.
- Use a custom permalink structure for all posts. You can add the category slug in the permalink. This will affect all posts, by the way. So instead of your posts showing the date in the URL, they will show up like this:
example.com/category-name/postname.
If you set it up like this, then all you need to do is:- Create a new category called Case Studies and add it to the relevant posts. With the new permalink structure, those posts will automatically have
/case-studies/in their URL. - Then update the current News or Insights page to show posts from all categories “except” for the Case Studies. You can see how to do this in this screenshot. Basically, you’ll want to select all but the Case Studies category.
- Finally, add the Posts block on the Case Studies page and choose only the Case Studies category to display posts from. So you will publish case studies the same way you do your other posts, but based on the
Case StudiesCategory as a filter, they will only be displayed on the “Case Studies” page.
- Create a new category called Case Studies and add it to the relevant posts. With the new permalink structure, those posts will automatically have
- Or you could use a plugin to create a custom post type. A custom post type refers to a completely new kind of “post” that is similar to your regular posts but can have a different URL structure altogether. The benefit of doing this is you’ll have a separate section for them in your wp-admin dashboard, and your regular “news” posts will keep their current permalink structure.
Depending on how often you’re planning to publish case studies and whether or not you want the permalink/URL of your ‘news’ posts to be affected, you can choose this option.
Hope that gives you some pointers. Feel free to chat with us if you have further questions deciding.
- Create a page with the
-
Thank you, this will worked but I am having trouble with the category list block. It does not allow me to only show lists of child posts under a specific parent. The list either shows all children or all parent or all categories(See screenshot) I would want to show a list of only blogs or only resources/case studies) for the parent page.
Is there anyway to customize this?

-
Hi there!
Could you share a link to the page in question? No problem if it’s in draft. We’ll be able to take a look.
I’m not fully sure how you’re trying to use the categories list, though. Categories list is to show a list of categories on your site. If you want to show posts from a certain selection of categories, you’d want to use the Query Loop block or the Blog Posts block, both of which have the option to filter posts based on categories.
Perhaps there’s another use case that you’re thinking of with the categories list that I’m not imagining. That’s why it’d be helpful if you could share a bit about how you want to use the Categories list on your site.
Thanks!
-
Here is a link to the template page where the list would be:
and here is link to a post page in the template
thanks for your help
-
Hey there,
Happy to help you with this.
It does not allow me to only show lists of child posts under a specific parent. The list either shows all children or all parent or all categories(See screenshot) I would want to show a list of only blogs or only resources/case studies) for the parent page.
The Category List block doesn’t show posts underneath the category titles.
Instead you may wish to use a series of Latest Post blocks, that filter the categories, separated by header blocks:

I hope this helps!
- The topic ‘Set up a second post-like section for case studies in the STAX theme?’ is closed to new replies.