Info
- 2 posts
- 1 voice
- Started 4 years ago by rosebud
- Latest reply from rosebud
- This topic is not resolved
Conditional tag for a particular user
-
- Posted 4 years ago #
I would like to know if there is a particular template tag to check (in profile for example) what user that profile belongs to.
i.e if is user id=x then do sth.
It might sound strange, given that the profile already takes care of this. But I need to add some data to only a few users, and that data can't be "user-editable". If this could be done with the custom profile fields plugin (add some fields which are only admin editable) then, please, instruct me.
Otherwise, I just need to hardcode the data for these few users.
Thanks in advance.
-
- Posted 4 years ago #
I figured it out. Thanks anyhow.
<php if ( $user_id == 1 ) : // User number one ?> -
You must log in to post.