Tagged: x
-
AuthorPosts
-
January 29, 2017 at 2:14 pm #1349832
wbgTHEMECOParticipantMy custom post types seem to be using the single.php type of template and I’d like them to use the “regular” page.php template.
How can I tell X theme to render these custom posts using the page versus post template?
thanks
January 29, 2017 at 8:51 pm #1350179
RadModeratorHi there,
Thanks for posting in.
It doesn’t use page.php, it uses single.php. Would you mind providing a sample URL of your custom post type? You can see which template is being used by checking the body class from the code.
Thanks!
February 5, 2017 at 2:48 pm #1358826
wbgTHEMECOParticipantThis reply has been marked as private.February 5, 2017 at 9:28 pm #1359095
Rue NelModeratorHello There,
Thanks for updating in! To get rid of the author or post meta in your custom posts, please add the following css code in the customizer, Appearance > Customize > Custom > CSS
.single-projects .p-meta { display: none; }And if you would like to create a custom post type template, please check out these threads: https://community.theme.co/forums/topic/custom-post-templates/#post-232039, https://community.theme.co/forums/topic/custom-post-type-template-2/
Hope this helps.
February 6, 2017 at 5:18 am #1359463
wbgTHEMECOParticipantThanks, those are good resources.
Is this forum posts still valid? It has me duplicating the views as well. I was wondering if I needed to create the views or if I could just create the single-CUSTOMPOSTNAME.php template.
thanks again
February 6, 2017 at 8:38 pm #1360559
LelyModeratorHi There,
Yes it is still valid. Yes we need to create the views as well.
To give you an example, let’s use X theme portfolio. Portfolio is a custom post type too.On the root folder of the theme we have \wp-content\themes\x\single-x-portfolio.php
That file is calling the file on view depending on your stack, we have wp-content\themes\x\framework\views\renew\wp-single-x-portfolio.php
Then again we have this wp-content\themes\x\framework\views\renew\content-portfolio.php
You may examine those three files on how it is calling other files.Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1349832 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
