• samanthawpaladinpos

    (@samanthawpaladinpos)


    Good morning,

    I would like to show entries only to the creator, even if they are an admin. We have a couple admins on the site.

    The scenario is: I have built a time off request form, that only two people should see entries to. I, as the site developer, don’t go poking around in other people’s time off requests, but I would like to be able to view my own requests on front end profile page.

    I need help! I have tried hard coding the current user id into the shortcode using php, I have tried using a filter to exclude entries that the display name field doesn’t match the display name of the current user, I have tried using the regular shortcode. I can’t get anything to work.

Viewing 1 replies (of 1 total)
  • Plugin Author fried_eggz

    (@fried_eggz)

    You can use the filter and filter out all entries where $entry[“created_by”] does not equal get_current_user_id()

Viewing 1 replies (of 1 total)
  • The topic ‘Show only to create — even for admin’ is closed to new replies.