How do I find out which (page) template file my custom child post is looking for?

If think you were using the wrong filter, please try using ‘single_template’. I assume you have created a plugin to create your custom post type. In the plugin folder you have a “templates” folder where you put the single page template called “palaver_single.php”. function palaver_single_mapping($single) { global $post; if ( $post->post_type == ‘palaver’ ) { … Read more

custom post type – project link output via single-portfolio.php

You can always use WordPress Code Reference to understand what is going on: get_post_custom() is a function that retrieves post meta fields and needs a post id as an parameter. It returns an array with post meta for the given post: https://developer.wordpress.org/reference/functions/get_post_custom/ get_post_custom_values() is a function that retrieves values for a custom post field and … Read more