Possible? Using Custom Post Type –> Display a specifc index.html, not template
-
Hi there!
I have been trying to figure out if what I am trying to do is even possible. Any and all help is much appreciated! Description below:
Basically — I want to have a custom post type that gives me something like “website.com/case-study/test-case-study” for a URL — but I don’t want to pull open a template, I want to serve an index.html file that is located within “website.com/wp-content/uploads/case-study/test-case-study”
I am already building the ability for the plugin I am writing to create that folder (/uploads/case-study/), then generate those sub-folders (e.g. /uploads/case-study/test-case-study/) and place the files I need within them.
The problem — I cannot seem to figure out a re-write pattern or method that allows website.com/case-study/test-case-study to just serve the index.html file.. instead the only thing that comes even close to what I want is just redirecting to website.com/wp-content/uploads/case-study/test-case-study/index.html.
This doesn’t work because the URLs then turn nasty and we’re displaying content right from the uploads folder..
Again the goal here is to navigate to “website.com/case-study/test-case-study” and view the index.html that is located at “website.com/wp-content/uploads/case-study/test-case-study/index.html” without the url changing.
I know this is an interesting problem to be solving — so I very much appreciate the assistance.
Thanks!
Jake
- The topic ‘Possible? Using Custom Post Type –> Display a specifc index.html, not template’ is closed to new replies.