Skip Navigation

Modify PHP template file for custom post type using OceanWP theme

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 voice and has 0 replies.

>
Author
Posts
#2828635

Hello,
I am trying to use a PHP template file to add the published date for a post type I created using Toolset. Unfortunately, I cannot build a custom template using shortcodes because it stops the script that automatically add ads to my content (see https://toolset.com/forums/topic/script-for-automatic-ad-insertion-not-working-on-cpt/#post-2826559).

I am trying to follow this: https://toolset.com/documentation/customizing-sites-using-php/creating-templates-single-custom-posts/
However, I find it very hard to follow as I cannot locate single.php or content-page.php or content-single.php to create a copy for my custom post types. Could you point me in the right direction please? Should I be looking at /partials/single/ and if so, what should be copied/renamed?

Thanks,
Eloise