Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1349832
    wbgTHEMECO
    Participant

    My 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

    #1350179
    Rad
    Moderator

    Hi 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!

    #1358826
    wbgTHEMECO
    Participant
    This reply has been marked as private.
    #1359095
    Rue Nel
    Moderator

    Hello 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.

    #1359463
    wbgTHEMECO
    Participant

    Thanks, 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

    #1360559
    Lely
    Moderator

    Hi 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.

  • <script> jQuery(function($){ $("#no-reply-1349832 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>