WordPress.org

Support

Support » How-To and Troubleshooting » Hide a download link to non-logged in users

Hide a download link to non-logged in users

Viewing 5 replies - 1 through 5 (of 5 total)
  • Jose Castaneda
    THEME COFFEE MONKEY

    @jcastaneda

    is_user_logged_in( ) function at your service! 😉

    Sho-Down
    Participant

    @sho-down

    I need to do this for each post though. I have 8 posts per page and each post has a download link that I need hidden to guests (but show some other text) until they log in.

    Currently I’m using the podPress plugin and I had the developer create a hack for me so I could hide download links, but I want to drop podpress and start using html5 audio players and separate download links. rockitpro dot com is my site.

    Andrew Bartel
    Member

    @andrew-bartel

    Sounds like you’re probably going to have to dig into some code man.

    I’ve used User Access Manager before in production environments and it’s worked pretty well though if you don’t want to edit a template file.

    Jose Castaneda
    THEME COFFEE MONKEY

    @jcastaneda

    Use it within the loop and it will work. 🙂

    Andrew Bartel
    Member

    @andrew-bartel

    It’s really worth your time to follow @jcastaneda‘s advice and learn a little code. It will make you x10 the web site admin. Just don’t forget to make a backup first! Happy coding.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide a download link to non-logged in users’ is closed to new replies.