Is there a way of linking custom post types to pages.
I am looking to create breadcrumbs for the posts.
The posts are summarised on individual pages e.g. golf, tennis, football etc..
So the Breadcrumb Structure inside the post will be:
Home / Tennis / “Post Title”
When clicking on Tennis – it should lead to the Tennis page I have created which summarises all tennis events.
You need to go and have a look at template hierarchy for custom post types. I believe your custom post type is tennis. So you would make a copy of your theme’s
archive.php
template and call itarchive-tennis.php
You can now style that template to your liking.Just remember, you don’t need to add or change any specific code inside your new template to specify your CPT. WordPress will exactly know it should use
archive-tennis.php
when the custom post type tennis is clicked