Custom Post-Type in WordPress erstellen

Um in WordPress einen Custom Post-Type zu erstellen öffnet man die functions.php seines Themes und fügt folgendes ein. Wir nennen den Post-Type einfach mal „Songtexte“. function create_posttype() { register_post_type( ’songtexte‘, array( ‚labels‘ => array( ’name‘ => __( ‚Songtexte‘ ), ’singular_name‘ => __( ’songtexte‘ ) ), ‚public‘ => true, ‚has_archive‘ => true, ‚rewrite‘ => array(’slug‘ => …

»