The message that is supposed to be displayed on a restricted page access is displayed all the time, even for logged-in users. Clicking on the link provided to log in just reloads the same restricted page with the same message about access being restricted.
]]>Hello,
First of all, great little plugin! Couldn’t have asked for more.
However I have only one tiny (and I mean tiny) ammend.
In the function yidp_content, where you return the link to login to wordpress, don’t forget to close off the tag.
The return statement of the function should look like the following.
return '<p><a href="' . wp_login_url( get_permalink() ) .'">' . $yidp_message. '</a></p>';
I hope this helps!
]]>