Hi Support
I'm wanting to add an image to active members of ours on our website.
I currently have a meta field in Users > Profile and there is a yes/no field that I have created.
On the website, I have added layout>Company>company-info.php to my child theme.
Issue
I need some help with my current coding to find out the connection between the USER connected to the job listing and how I can use it in my code to display my image based on the user field being = yes.
Can you please help?
<?php
// Call Data From User Profile For Is WBN Member?
$user_id2 = get_current_user_id();
$wbnmemberstatus = get_user_meta($user_id2, 'wbn_member', true);
?>
WBN Member
<?php //Show status on job listing page if($wbnmemberstatus == 'yes'): ?>
" /><?php endif; if($wbnmemberstatus == 'no'): echo 'Not Working'; endif; ?>
The end result
Please see the image attached. I want this image to appear on these job listings only for users where we have marked "Yes" in a user meta field box.
Kind Regards,
Peter Lowen
Attachments:
You must be
logged in to view attached files.