Home Forums Weaver X Tutorials and Hints tutorial to add and display custom post Re: tutorial to add and display custom post

#29168
davidm
Participant

Hi Scrambler,
I’m not having much success with the shortcode route, mainly because the shortcodes are limited to simple text fields – select lists, check-boxes and taxonomy fields aren’t covered. So I’d like to try using custom post templates, I’ve done this successfully before but with a much simpler starter theme – underscores  (I’m going from 1 extreme to the other)
Like to check with you if this is the right way to do it

1. copy single.php to single_cpt.php
2. In single_cpt.php change line <?php get_template_part( ‘templates/content’, ‘single’ ); ?> to
                                               <?php get_template_part( ‘templates/content’, ‘single-cpt’ ); ?>
3. Copy templates/content-single.php to templates/content-single-cpt.php

4. Make the changes in templates/content-single-cpt.php

Thanks for your help
David