One page, two page templates
The goal is to have a custom page template that displays on the website for viewers, but then for me to have a secret url that formats into a HTML table for me to post into an ad on craigslist.
I’ve come up with a solution, but don’t really know how to pull it off. If I was to take the post page, i.e. http://www.sample.com/post123. then I append ‘?cl=1’ to it to have it generate the simple html page template, i.e. http://www.sample.com/post123?cl=1
The template file would have an statement that would read that URL addition. If cl=1 then display simple html to copy and paste, else (if empty or false, then display normal frontend template.
I know this is possible, but I’m not sure what to call it to research it or how to utilize it to troubleshoot it myself. Or is their an easier wordpress codex that I can use?
- The topic ‘One page, two page templates’ is closed to new replies.