Forum
How do I make blog posts sit under their section url?
I have two blog sections, one lives under site.org/blog
the second lives under site.org/page/blog
. At the moment I have posts appearing in the correct place, however the blog posts under the second section have urls that live under the first section. I need those posts to have the url site.org/page/blog/title
but I can't figure it out.
Anyone able to point me in the right direction?
Have you included the
{sectionSlug}
in the post page URL in settings?EDIT I realised my error and included a posts.php in the folder and it worked. Thanks Drew.
I hadn't. I added that in to
Blog post page path
so that it looks like/{sectionSlug}/post.php?s={postSlug}
and the slug format is{postTitle}
.That of course breaks everything and every post url gives a 404 error which says
romans158 is the section slug and also the name of the folder that the new blog page resides in.
The template I'm using to display the blog posts in a list is