Show Expiry-Date in Protected page gives error
-
I have SWPM Show Member Info plugin (Add in) 2.1
The [swpm_show_member_info column=”expiry_date”] creates an error if it exists in a page that is protected to logged in users only and page is opened by a person NOT LOGGED IN. Here is code:[swpm_protected visible_to="logged_in_users_only"]
Hello [swpm_show_member_info column="first_name"] [swpm_show_member_info column="last_name"]
Membership Level: [swpm_show_member_info column="membership_level_name"]Account Status: [swpm_show_member_info column="account_state"]
Membership Expires: [swpm_show_member_info column="expiry_date"][/swpm_protected]
That code gets this error message when page is selected and NO account holder is logged in:
Error! This member profile (Member ID: ) does not have a valid membership level assigned. The site admin needs to assign a valid membership level to this member profile.
However if I remove the expiry_date line then it works as expected when NO user is logged in
[swpm_protected visible_to="logged_in_users_only"]
Hello [swpm_show_member_info column="first_name"] [swpm_show_member_info column="last_name"]
Membership Level: [swpm_show_member_info column="membership_level_name"]
Account Status: [swpm_show_member_info column="account_state"]
[/swpm_protected]Gives this expected result:
This content is for members only.This seems to be a bug in the plugin or add in
Any thoughts?
- You must be logged in to reply to this topic.