Type: php
K9 Hole Desktop Template
/* Template Name: K9 Hole Desktop Full */ // Ensure no other header is loaded if this is a full template override // Do NOT call get_header() here if the entire HTML structure is below. ?>Continue reading
Dynamic Product Schema Markup for All WooCommerce Products
k9-hole-mobile/
/* Template Name: K9 Hole Mobile */ ?>Continue reading
k9-hole-desktop
/* Template Name: K9 Hole Desktop Full */ ?>Continue reading
Duplicate Post/Page Link (copy)
// Add duplicate button to post/page list of actions. add_filter( ‘post_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); add_filter( ‘page_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); // Let’s make sure the function doesn’t already exist. if ( ! function_exists( ‘wpcode_snippet_duplicate_post_link’ ) ) { /** *…Continue reading
ACF Display Frontend (Opt Fields with prefix/suffix)
Religion Profile Page – calculate PG and Pop counts
function get_total_religion_rows() { global $wpdb; $table_name = “people_groups”; $param = get_field(‘ror’); // Gets the ACF field ‘ror’ from the current post if (!$param) { return ‘No ROR value found.’; } return number_format($wpdb->get_var($wpdb->prepare(“SELECT COUNT(*) FROM $table_name WHERE ROR = %s”, $param)));…Continue reading
Untitled Snippet
google-site-verification=-jISe-Oe0cpvoUkE-I-AlGEIAzjdaSC50PUnVdPH7BYContinue reading
Untitled Snippet
if (function_exists(‘asl_display’)) { echo do_shortcode(‘[ajax_search_form]’); }Continue reading