User Specific Content
[resolved] Add Login Prompt? (3 posts)

  1. jhanten
    Posted 3 years ago #

    Do you know of any easy way to ask a user to login if they are not that I could add to this plugin? It does everything I need, but if a user isn't logged in I need a simple way to help them correct that.


  2. Bainternet
    Plugin Author

    Posted 3 years ago #

    Yep I do :)

    function show_login_form(){
        return wp_login_form(array('echo' =>false));

    add this to your theme's functions.php

  3. pebble_garden
    Posted 3 years ago #

    Hey Bainternet,
    It works, however, it gets showed twice. I'm not sure why, and I havn't found a clue so far. When I try to only have this "No Access"-Text, it also get printed out twice on the page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Specific Content
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic