Ha „egyedi bejegyzés típusokra” (custom post type) van szükséged, egyszerűen regisztrálhatod és beállíthatod a functions.php-ban. Felesleges a bővítmények használata.
Mindenhez jól jöhet, pl.: szolgáltatások, csapattagok egyszerű kezelésére.
function ph_services_custom_post_type() {
$labels = array(
'name' => __( 'Szolgáltatások' ),
'singular_name' => __( 'Szolgáltatás'),
);
$args = array(
'label' => __( 'szolgaltatas'),
'description' => __( 'A Szolgáltatások egyedi bejegyzés típusa'),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes'),
'public' => true,
'hierarchical' => false,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'has_archive' => true,
'can_export' => true,
'exclude_from_search' => false,
'yarpp_support' => true,
'publicly_queryable' => true,
'capability_type' => 'post',
'menu_icon' => 'dashicons-clipboard'
);
register_post_type( 'szolgaltatas', $args );
}
add_action( 'init', 'ph_services_custom_post_type', 0 );