Need some help with single.php

I created a custom post type called “Websites” and got everything working but wanted to show the tags at the bottom of the page. I contacted the maker of the plugin (CPT UI) and he told me

The second item is definitely going to be a code-level thing needing adjusted. Hopefully you’re using a child theme for whatever theme you chose, but I can’t guarantee. If you are though, awesome. At minimum, I would recommend duplicating your single.php file and making a single-websites.php from that copy. You would then be able to edit that new file as needed and have it just affect your “Websites” post type. At that point, a function like https://codex.wordpress.org/Function_Reference/get_the_term_list or similar would be a good next step. You may need to delve into some other template files as well, depending on exactly how the single.php is structured, and if it loads other template files instead of having everything there in the file itself.

but with how X is layed out I am a little lost. Am I supposed to copy the single.php from the main theme to the child theme? Or am I supposed to be using a specific single.php for my stack? Or perhaps in X there is a different way altogether.

Any help is appreciated!

Hey Eric,

X does have a single.php. But, it’s output is based on what Stack you’re using. For more details, please check out our guide for customizing X at https://theme.co/apex/forum/t/customizations-best-practices/205.

Please just note that we do not have support for customization issues as stated in our Terms. Theme customization requires developer knowledge so by adding custom code to the child theme we provide, we assume that it would be the user’s or the developer’s responsibility to develop and maintain his/her code.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.