Enable Excerpt Field on Pages and Post Content
add_post_type_support( ‘page’, ‘excerpt’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_post_type_support( ‘page’, ‘excerpt’ );Continue reading
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
add_action( ‘wp_head’, function() { if ( is_singular() ) { $banner_color = get_post_meta( get_the_ID(), ‘banner_color’, true ); if ( $banner_color ) { echo ‘ ‘; } } });Continue reading
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
$search = do_shortcode(‘[ivory-search id=”2205″ title=”Custom Search Form”]’); $search_json = json_encode($search); echo ‘‘;Continue reading
if ( ! defined( ‘COMPEER_PODCAST_CURRENT_SEASON’ ) ) { define( ‘COMPEER_PODCAST_CURRENT_SEASON’, ‘5’ ); } add_action( ‘save_post’, function ( $post_id, $post ) { if ( defined( ‘DOING_AUTOSAVE’ ) && DOING_AUTOSAVE ) { return; } if ( ! $post instanceof WP_Post || $post->post_type…Continue reading
google-site-verification=2qRnmMOU51GWk3rx-tL2TwbUAd1kOVvjw9caXI6AvrA google-site-verification=2qRnmMOU51GWk3rx-tL2TwbUAd1kOVvjw9caXI6AvrAContinue reading
add_filter( ‘pre_do_shortcode_tag’, static function ( $output, $tag, $atts ) { if ( ‘frm-reset-password’ !== $tag || ! is_user_logged_in() || ! isset( $_GET[‘key’], $_GET[‘login’] ) || ! class_exists( ‘FrmRegResetPWForm’ ) ) { return $output; } $key = sanitize_text_field( wp_unslash( $_GET[‘key’] )…Continue reading