Custom Post & Page Template works locally but not remotely
-
I hope I am posting this in the correct forum, and if not, please feel free to move it.
I have spent the entire day learning how to create a custom post type, implement it in my child theme and then create and implement the associated templates for the custom post type.
I have a local implementation of WordPress where I managed to get everything working, so then uploaded the required files to the same folder on the server, but when clicking on the custom post type I am getting a 404.
I have notice a difference in the links locally and on the server. Here are the results I get:
For the purposes of explaining I will refer to the custom post type as ‘custom_post_type’ and the custom post as ‘custom_post’
Locally: localhost/?custom_post_type=custom_post
Server: example.com/custom_post_type/custom_postWhy am I getting a different link on the server to what I am getting locally?
- The topic ‘Custom Post & Page Template works locally but not remotely’ is closed to new replies.