// Voeg Artiesten toe aan zoekresultaten function include_artiesten_in_search_results($query) { if (!is_admin() && $query->is_main_query() && $query->is_search) { $query->set('post_type', array('post', 'artiesten')); } } add_action('pre_get_posts', 'include_artiesten_in_search_results'); // Registreer het custom post type "Artiesten" function register_custom_post_type_artiesten() { $labels = [ 'name' => 'Artiesten', 'singular_name' => 'Artiest', 'menu_name' => 'Artiesten', 'name_admin_bar' => 'Artiest', 'add_new' => 'Nieuwe artiest toevoegen', 'add_new_item' => 'Voeg een nieuwe artiest toe', 'edit_item' => 'Bewerk artiest', 'new_item' => 'Nieuwe artiest', 'view_item' => 'Bekijk artiest', 'search_items' => 'Zoek artiesten', 'not_found' => 'Geen artiesten gevonden', 'not_found_in_trash' => 'Geen artiesten gevonden in prullenmand', 'all_items' => 'Alle artiesten', ]; $args = [ 'label' => 'Artiesten', 'labels' => $labels, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_rest' => true, 'has_archive' => true, 'rewrite' => ['slug' => 'artiesten'], 'supports' => ['title', 'editor', 'thumbnail', 'custom-fields'], 'menu_position' => 5, 'menu_icon' => 'dashicons-groups', ]; register_post_type('artiesten', $args); } add_action('init', 'register_custom_post_type_artiesten'); // Activeer REST API-ondersteuning voor ACF add_filter('acf/rest_api/field_settings/show_in_rest', '__return_true'); add_filter('acf/rest_api/field_groups/show_in_rest', '__return_true'); add_filter('acf/rest_api/fields/show_in_rest', '__return_true'); https://www.dreamanimations.be/post-sitemap.xml 2025-06-22T07:55:25+00:00 https://www.dreamanimations.be/page-sitemap.xml 2025-06-25T19:11:08+00:00 https://www.dreamanimations.be/blocks-sitemap.xml 2016-09-04T15:57:34+00:00 https://www.dreamanimations.be/product-sitemap.xml 2014-08-10T10:06:55+00:00 https://www.dreamanimations.be/artiesten-sitemap.xml 2025-07-07T20:00:41+00:00 https://www.dreamanimations.be/featured_item-sitemap.xml 2016-08-28T09:39:54+00:00 https://www.dreamanimations.be/category-sitemap.xml 2025-07-07T20:00:41+00:00 https://www.dreamanimations.be/post_tag-sitemap.xml 2025-06-22T07:55:25+00:00 https://www.dreamanimations.be/product_cat-sitemap.xml 2014-08-10T10:06:55+00:00 https://www.dreamanimations.be/product_tag-sitemap.xml 2014-08-10T10:06:55+00:00 https://www.dreamanimations.be/featured_item_category-sitemap.xml 2016-08-28T09:39:54+00:00 https://www.dreamanimations.be/author-sitemap.xml 2025-07-07T21:26:11+00:00