It seems we can’t find what you’re looking for. Perhaps searching can help.
function scholarship_details_shortcode() { if ( ! is_single() ) return ''; $post_id = get_the_ID(); $enable_scholarship = get_post_meta( $post_id, 'enable_scholarship', true ); if ( $enable_scholarship !== 'on' ) return ''; // Retrieve all fields $fields = [ 'host_country' => get_post_meta( $post_id, 'host_country', true ), 'eligible_students' => get_post_meta( $post_id, 'eligible_students', true ), 'deadline' => get_post_meta( $post_id, 'deadline', true ), 'host_university' => get_post_meta( $post_id, 'host_university', true ), 'funding_type' => get_post_meta( $post_id, 'funding_type', true ), 'study_level' => get_post_meta( $post_id, 'study_level', true ), 'apply_url' => get_post_meta( $post_id, 'apply_url', true ), ]; // Define icon mappings (Font Awesome classes) $icon_map = [ 'host_country' => 'fa-globe-americas', 'eligible_students' => 'fa-user-graduate', 'deadline' => 'fa-calendar-alt', 'host_university' => 'fa-university', 'funding_type' => 'fa-hand-holding-usd', 'study_level' => 'fa-book-open', ]; // Labels for display $label_map = [ 'host_country' => 'Host Country', 'eligible_students' => 'Eligible Students', 'deadline' => 'Deadline', 'host_university' => 'Host University', 'funding_type' => 'Funding Type', 'study_level' => 'Study Level', ]; // Build the HTML $html = '
'; // end card // Responsive CSS $html .= ''; return $html; } add_shortcode( 'scholarship_details', 'scholarship_details_shortcode' );It seems we can’t find what you’re looking for. Perhaps searching can help.