Tell us what you are trying to do?
i need to display a user custom field based on a specific user id of "546" .. tried to do this with a view within a view within a view but i guess thats not possible so i need to do it with php.
so i need to display a view that will show me a single user based on the user ID of 546, and the only thing I need the view to output would be a custom with the slug "financial-institution".
I got this to work.... with a posts view, but when i tried to use it to display users it would not work.
echo render_view( array( 'name' => '_test' ) );
Ofcourse the above does not have any arguments or conditions, i was just testing and seemed like a good place to start.
this seams to be, or should be pretty easy. what am i missing.
the above code gets the userid of the user profile someone is on, stores it in a variable and then i use that variable to render the data in the usermeta ...
my question is, on this: types_render_usermeta( "financial-institution", array( "user_id" => $clientuserid ) );
how do i get it to output the raw data, this is dropdown data so i need to display the raw data not the field name or whatnot.
The code snippet that you shared, itself seems correct. But it would be difficult to troubleshoot without knowing the context where it is being placed.