• Hi-

    I’m wondering if there’s a way to hide/show content or a message if there in a value in the current user’s get_author_data field? I need to display a link to a page ONLY IF the current user has ANY data in their custom user profile field. Does that make sense?

    Thanks,

    Dave

Viewing 1 replies (of 1 total)
  • If the custom field is kept in the wp_usermeta table, you should be able to retrieve it using the get_user_meta() function. Then you can test the returned value to see whether to display the link.

Viewing 1 replies (of 1 total)

The topic ‘hide/show content based on current user's specific profile field’ is closed to new replies.