• Resolved paolosub

    (@paolosub)


    I created a custom post type for my website using these instructions. Its slug is esercizi-meditazione and it works well.

    I would like to create a specific template for this post type, but I am not very expert. As a starting point, I created a file called “single-esercizi-meditazione.php” in the child theme with this code:

    <?php get_header(); ?>
    
    <?php hu_get_content( 'tmpl/page-tmpl'); ?>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    I used page-tmpl, rather than single-tmpl, because it displays the featured image. It works, but I need to customize it further.
    How can I have a template different to page-tmpl and customize it?
    If I create a new template with a different name, the post is displayed like in a post list.
    Thank you for your help.

    The page I need help with: [log in to see the link]

  • The topic ‘Template for custom post type’ is closed to new replies.