Hello!
I would like to create my own “custom post type”. It shall be similar to the ‘aside’ style.
Now I copied the content-aside.php to the child theme and renamed it into: content-tngupdate.php
Afterwards, I wanted to register the tngupdate post style in the functions.php of the child theme:
add_action( 'after_setup_theme', 'encounters_child_post_formats', 11 );
function encounters_child_post_formats() {
add_theme_support( 'post-formats', array( 'aside', 'image', 'status', 'quote', 'tngupdate' ) );
}
This is not working. When I am now reading further, I am wondering whether or not this is possible at all.
According to http://codex.wordpress.org/Post_Formats , it seems that there is indeed a fixed list of post formats available.
But this is still static in my opinion, and not “custom”.
Am I expecting too much behind the “custom post type” phrase? — Or can I introduce my very own “tngupdate” style somehow?
— If not, the only “workaround” that would come to my mind might be switching to content-video.php, which is defined, but won’t be used in my Encounters child theme.
Thanks for any hints!
Kind regards,
Marcus