Home › Forums › Front-end Issues › Memberpress support › Reply To: Memberpress support
That could possibly work in some places, but it the goal is to hide all of the content on the page and replace it with a login form, content form ACF fields can be shown in many ways and that would only cover the content of one field. Most of the custom fields are shown, as you know, by adding additional HTML and templates that is not effected by the_content
or acf_the_content
. I think that the only way to ensure that nothing is output on the page is to add a conditional around all of the HTML and acf function calls so that the code is not run if the user must log in or is for some other reason not permitted to see the content and to only run the_content()
in the template.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.