Type: php
Podcast RSS Feed
add_action( ‘wp_enqueue_scripts’, function() { wp_add_inline_script( ‘jquery’, ‘ jQuery(document).on(“click”, “.uvri-tab-btn”, function() { jQuery(“.uvri-tab-btn”).removeClass(“active”); jQuery(“.uvri-tab-panel”).removeClass(“active”); jQuery(this).addClass(“active”); jQuery(“#” + jQuery(this).data(“tab”)).addClass(“active”); }); ‘ ); } ); function uvri_podcast_episodes_shortcode() { $year_season = array( 2023 => 1, 2024 => 2, 2025 => 3, 2026 => 4,…Continue reading
Grab Excerpt Field for Three Boxes Homepage
add_filter( ‘get_the_excerpt’, function( $excerpt ) { remove_filter( ‘the_content’, array( SiteOrigin_Panels::single(), ‘generate_post_content’ ) ); return $excerpt; } ); add_filter( ‘the_content’, function( $content ) { add_filter( ‘the_content’, array( SiteOrigin_Panels::single(), ‘generate_post_content’ ) ); return $content; }, 11 );Continue reading
Insert Custom Search Into Header
$search = do_shortcode(‘[ivory-search id=”2185″ title=”Custom Search Form”]’); $search_json = json_encode($search); echo ‘‘;Continue reading
Completely Disable Comments (copy)
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading
People Group Profile – CSS Class for matching religion to a color – PROD LIBRARY
/* * Snippet #36 (ID 35273): People Group Profile – CSS Class for matching religion to a color * Type: php * Status: publish * Location: 1 * Modified: 2025-07-28 17:52:37 */ function custom_rlgn_font_color_style() { if (is_singular()) { $rlgn =…Continue reading
PG Profile — Dig Deeper slider bar + text fix – PROD LIBRARY
/** * Snippet Title: PG Profile — Dig Deeper slider outside label fix * Description: Fixes unreadable percentage labels in the UAGB Counter Bars blocks * in the Religion and Language Dig Deeper sections on PG profile pages. * *…Continue reading
Send Google Drive link to Google Sheets and purge entries
/** * Send Google Drive URLs to Google Sheets. * * Setup requirements: * – Entry storage ON (Disable storing entry information in WordPress = OFF) * – Purge Entries Automatically = ON, set to 1 day * – Google…Continue reading
Completely Disable Comments (copy)
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading
BRICKS – Admin Quick Nav
/** * Plugin Name: MA Admin Quick Nav * Description: Admin Bar Quick Navigation for Post Types * Version: 2.0.2 * Author: Matthias Altmann * Author URI: https://www.altmann.de/ * Copyright: © 2024-2026, Matthias Altmann * Requires at least: 5.8 *…Continue reading