Browse Source

faculty profile 33

Rousnay 1 year ago
parent
commit
a4d9858678
1 changed files with 6 additions and 3 deletions
  1. 6 3
      single-faculty.php

+ 6 - 3
single-faculty.php

@@ -10,6 +10,9 @@ get_header(); ?>
 
 <?php while (have_posts()) : the_post();
 
+
+	$auth_token = get_field('auth_token', 'option');
+
 	$login_id_e = "";
 	if (function_exists('get_field')) {
 		$pid_content = get_post();
@@ -30,7 +33,7 @@ get_header(); ?>
 			'body' => array(
 				'user_login_id' => 'api_user',
 				'login_id' => $login_id_e,
-				'auth_token' => 'api_user20230419045143'
+				'auth_token' => $auth_token
 			)
 		)
 	);
@@ -45,7 +48,7 @@ get_header(); ?>
 				'employee_id' => $login_id_e,
 				"year"  => "",
 				'user_login_id' => 'api_user',
-				'auth_token' => 'api_user20230419045143'
+				'auth_token' => $auth_token
 			)
 
 		)
@@ -61,7 +64,7 @@ get_header(); ?>
 				'employee_id' => $login_id_e,
 				"year"  => "",
 				'user_login_id' => 'api_user',
-				'auth_token' => 'api_user20230419045143'
+				'auth_token' => $auth_token
 			)
 
 		)