Hi everyone.
I created a new CPT with the post_type as match and I tried it into a loop in my template-landing and everything is fine.
Now I need to create the single-page of the match so I did this:
copied and pasted single.php and changed the name as single-match.php, and inside this I changed the path of the get_template_part to the new content-single-match.php
copied and pasted templates/content-single.php and changed the name as templates/content-single-match.php
Now everything should be fine but if I open the single page of the CPT I get a 404 error.
Can anyone see any error?
Thanks!
That did the trick.
Why did it happen? I mean, I didn’t set anywhere any option about the permalinks, now I set them as “post-name” and everything works.