Auteur Display

/** * Toon altijd de weergavenaam (display_name) in plaats van * de gebruikersnaam of nicename in auteurvermeldingen. */ add_filter( ‘get_the_author_user_login’, ‘dv_author_display_name’, 10, 3 ); add_filter( ‘get_the_author_user_nicename’, ‘dv_author_display_name’, 10, 3 ); add_filter( ‘get_the_author_nickname’, ‘dv_author_display_name’, 10, 3 ); function dv_author_display_name( $value, $user_id,…Continue reading

Untitled Snippet

// MDB-SOP-2026-09-HOSTREDIRECT v1.0 // Belt-and-braces host redirect. Kinsta’s edge rule (minervadb.xyz ^(.*)$ -> https://minervadb.com$1) // is not applied to every client: GSC live test on 2026-09-11 returned 200 OK for Googlebot on // inner .xyz URLs. This guarantees a 301…Continue reading

Automatically Trash Past Events

/** * Move past events to the trash on a daily schedule. * * Sites that have run for years accumulate thousands of finished events. They * stay in every admin view and every query, and past a few hundred…Continue reading

Add Your Own Custom Fields to Events

/** * Add your own fields to the event editor and show them on the event page. * * Sugar Calendar has no custom-fields UI. This adds one: edit the array in * sc_snippets_custom_event_fields() and each entry becomes a field…Continue reading

Add a Get Directions Link to Venue Pages

/** * Add custom content before or after the venue details wrapper. * * `sc_venue_details_before` fires outside and above the * .sc-venue-details container. * * `sc_venue_details_after` fires below the container and is * where related events are rendered by default…Continue reading

Custom Field Order on Venue Pages

/** * Replace the default venue details renderer with a custom layout. * * The default sc_venue_details() function has a hardcoded field order * (address, city, state, country, postal code, phone, website, map, content). * Unlike speakers, there is no…Continue reading

Show the Venue Photo Above the Venue Details

/** * Display the venue featured image above the venue details. * * The venue rendering has no built-in featured image output. * This hooks into `sc_venue_details` at priority 5 (the default * sc_venue_details() function runs at priority 10) to…Continue reading

Card Layout for Speaker Pages

/** * Card layout for speaker pages. * * Replaces Sugar Calendar’s own speaker details renderer with a card design: * hero image, role, contact pills, social badges, then the bio. The styles are * printed inline, so there is…Continue reading