Support » Plugin: Pods - Custom Content Types and Fields » Only show when user is author

  • Resolved mrgrt

    (@mrgrt)


    Hi,

    We have a pod template that includes the following on a custom post type:

    <button class="dt-btn dt-btn-m" onclick="window.location.href = '/edit-custom-post-type/?identifier={@ID}';">Edit</button>

    Is it possible to show this button only if the user is the author of this post?

    Thanks,

    Grahame

Viewing 1 replies (of 1 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @mrgrt

    Conditional logic like that can only be done in PHP templates, not Pods Templates.
    Pods Templates are flexible but have their limitations.

    Cheers, Jory

Viewing 1 replies (of 1 total)
  • The topic ‘Only show when user is author’ is closed to new replies.