WP custom post type
Per registrare un nuovo post type, usare la funzione register_post_type sull’action init.
Seguire le template hierarchy per personalizzare il template.
GenerateWP ha un tool gratuito
Codice
<?php
# Register Custom Post Type
function lpuk_pills() {
# Riferimento $args nella doc
$args = array(---);
register_post_type( 'lpuk_pill', $args );
}
add_action( 'init', 'lpuk_pills', 0 );