Reputation: 1962
I currently run a self hosted WordPress website; on a VPS Server.
I am currently building my content and trying to configure my website structure and layout. It is within this area where I have an issue that I hope can be resolved.
At present, my website will be providing 3 services. Each service will have its own Page. In the interest of building my SEO strategy, I would like to create a series of Blogs that are specific to each service and thus Page. I would like the layout for each service to appear as follows:
Home > Service Page > Service Blog Post
I would like the 'Home' and 'Service Page' to be in a page format with the 'Service Blog Post' to be in a Blog post format. Whilst I know how to create a page and a blog page, I am uncertain of how to create these both whilst maintaining the above breadcrumb/URL structure. I have tried experimenting with the Categories function but as you are probably aware, I can get to the 'Service Page' but as soon as I click through to the 'Service Blog Post', I get redirected to the URL of: categories/blog-post.
I am unsure if it is possible to achieve the above but any help would be greatly appreciated.
Regards
Craig
Upvotes: 0
Views: 41
Reputation: 26
Custom post types are the way to go.
https://codex.wordpress.org/Function_Reference/register_post_type
This will allow you to define the slug(url) directory for the given service to be something like /service-type/service-blog-post and /service-type/ should display the archive of service-type blogs.
When you run the register post type hook you will define that slug here:
register_post_type( 'service-type', $args );
If custom post types are new to you then I'd recommend checking out https://generatewp.com/ as it gives you a simple interface to build out a custom post type as well as other wordpress functions.
Upvotes: 1