Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Custom post type template

$
0
0

Replies: 0

Hi,

I am trying to create a Custom post type template.

Sticking a single-MyCustomPostType.php in the child theme does not work, because you use template parts to build the post page.

I need to insert my own PHP code onto the Custom post type primary content area.

How can I do this?

I tried this, but it had no effect:
remove_action( 'astra_entry_content_single', 'astra_entry_content_single' );


Viewing all articles
Browse latest Browse all 59525

Trending Articles