• Hi there,

    I am busy testing your Plugin for my website. I am using Custom Fields for my content to add dates/links etc. The content is locked however people who are not logged in can see the Custom Fields I have created in my content.

    How can I avoid logged out users seeing customs fields?

    NB: I am not using a plugin for the Custom Fields.

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @mad2kx,

    Thank you for using Paid Memberships Pro.

    Do you have a link to a page/post where these custom fields are shown?

    It’s possible that the custom fields are loading after the PMPro the_content filter which is why that content is visible to non-members.

    https://www.paidmembershipspro.com/filter-members-only-content-later-for-page-builders-and/

    You may need a free account on paidmembershipspro.com to gain access to some documentation.

    I look forward to hearing back from you.

    Thread Starter WeDev.Africa

    (@mad2kx)

    Hi @andrewza,

    apologies for the delayed response, I was playing around with another membership plugin but they don’t support Payfast so I am back a square one with PMPro. But that snot the issue…

    I pasted the following code into my functions.php but it does not seem to work:

    
    function my_init_change_pmpro_content_filter_priority()
    {
    	remove_filter('the_content', 'pmpro_membership_content_filter', 5);
    	add_filter('the_content', 'pmpro_membership_content_filter', 15);
    }
    add_action('init', 'my_init_change_pmpro_content_filter_priority');

    Example link: https://tenderfinder.co.za/testing/2018/04/21/test-article-1/

    The Custom Fields below the content must be hidden or available for members only.

    Best,

    Mad2kx

    Thread Starter WeDev.Africa

    (@mad2kx)

    Hi @andrewza,

    closing this topic.

    I found a solution how to solve this entire issue:

    Create content filter and add all metafields into that filter.

    Best,

    mad2kx

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problems with Custom Fields’ is closed to new replies.