Religion Profile Page – generate shortcode for each Religion field
function get_religion_field_values($atts) { // Extract attributes $atts = shortcode_atts(array( ‘field_name’ => ”, ‘slug_output’ => ‘false’, ), $atts, ‘religion_fields’); // Get the current post ID $post_id = get_the_ID(); $output = ”; if (get_post_type($post_id) === ‘religion’) { // Debugging: Check if the…Continue reading