Get element visible only by job author
-
Hello,
I would like to display an element in single job listing page to be only visible by job author.
I try
<?php if(! $user) { $user = get_user_by( 'id', $job->post_author ); ?> <div>my stuff</div> <?php } else Other stuff ?>
But can’t get working. Do you have any idea how i can get this work.
Thanks in advance.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get element visible only by job author’ is closed to new replies.