Could we help you? Please click the banners. We are young and desperately need the money
We are using custom post-types to expand our wordpress themes and create the ability for the user to insert dynamic content. A custom post-type could for example be "cpt-species-de" where the customer can add different species of animals to display on his homepage.
register_post_type( 'cpt-testcontent-de',
array(
'labels' => array(
'name' => __( 'Startseiteninhalte [DE]' ),
'singular_name' => __( 'Startseiteninhalt [DE]' ),
'add_new' => __( 'Erstellen' ),
),
'description' => 'Startseiteninhalte [DE]',
'public' => true,
'has_archive' => true,
'supports' => array( 'title', 'revisions', 'page-attributes'),
'rewrite' => array( 'slug' => 'de/startseiteninhalte' ),
'menu_position' => 10,
'show_in_nav_menus' => false,
'show_ui' => true,
'show_in_menu' => 'testcontent',
// 'menu_icon' => 'dashicons-table-row-before',
)
);
add_menu_page('', 'Testcontent', 'read', 'testcontent', 'my_plugin_function', 'dashicons-table-row-before', 10);
With ACF we can create fields for dynamic content entering. ACF offers us the opportunity to create logical conditions, so we can only show the ACF where it is needed.
