Hi,
I am using the advanced layout builder. If you look on the homepage, you’ll find a codeblock with a shortcode.
When you look at the website, you’ll see that the transparent menu is on top of a white section, uppercase titles aren’t uppercase, on mobile, the site isn’t responsive…
(I just made 3 events just for testing and I want to add some more fields to the post type later on.)
Best regards,
Dirk
Hi,
The custom post type is called event. and I added it with this code:
function custom_post_types() {
register_post_type(‘event’, array(
‘public’ => true,
‘labels’ => array(
‘name’ => ‘Events’,
‘add_new_item’ => ‘Nieuw event toevoegen’,
‘new_item’ => ‘Nieuw event’,
‘edit_item’ => ‘Event bewerken’,
‘all_items’ => ‘Alle Events’,
‘singular_name’ => ‘Event’
),
‘menu_icon’ => ‘dashicons-calendar-alt’
));
}
add_action(‘init’, ‘custom_post_types’);
I added the code you suggested:
function avf_alb_supported_post_types_mod( array $supported_post_types )
{
$supported_post_types[] = ‘event’;
return $supported_post_types;
}
add_filter(‘avf_alb_supported_post_types’, ‘avf_alb_supported_post_types_mod’, 10, 1);
But the result is still the same.