Browse Source

faculty profile 5

Rousnay 1 year ago
parent
commit
1b6a7ff6ed
2 changed files with 6 additions and 2 deletions
  1. 1 1
      functions.php
  2. 5 1
      single-faculty.php

+ 1 - 1
functions.php

@@ -237,7 +237,7 @@ function uiu_acf_update_user_id($value, $post_id, $field)
 		$user_meta = json_decode($user_meta);
 		$user_id = $user_meta[0]->id;
 		// set value
-		$value = "Rosunay";
+		$value = "Rousnay";
 		return $value;
 	} else {
 		return $value;

+ 5 - 1
single-faculty.php

@@ -38,7 +38,11 @@ get_header(); ?>
 							<h2 class="profile-des">
 								<?php the_field('designation'); ?>
 							</h2>
-							<p><?php //the_field('employeeid'); 
+							<p><?php //the_field('employeeid');
+								?>
+								<?php
+								$field = get_field_object('employeeid');
+								echo $field;
 								?></p>
 
 							<?php if (have_rows('contact_details')) : ?>