single post template for custom post type woes
-
U have created a custom post type (as well as a meta box and a taxonomy) with the code below.
I have created a single post template for this post type called single-portfolios.php
When I create a post everything works fine. When I preview the post everything works fine and the content is displayed through the single-portfolios.php file. When I publish it all breaks down and the post is displayed through the default index.php file.
<iframe src="https://pastebin.com/embed_iframe.php?i=gF0dF1Q2" style="border:none;width:100%"></iframe>
<script src=”https://pastebin.com/embed_js.php?i=gF0dF1Q2″></script>
Since I obviously cannot seem to embed the code form pastebin here’s a link: https://pastebin.com/gF0dF1Q2
- The topic ‘single post template for custom post type woes’ is closed to new replies.