I am sorry.
Actually to define a variable with a global scope, I don’t think we have to declare it global. Just the following is sufficient:
$client = the_author_meta(‘client’);
This will automatically have global scope.
Then when you use it within a function, you declare it as global as follows:
function set_client(){
global $client;
echo $client;
}
My problem is that in the global scope, the function the_author_meta(‘client’) does not return any value.