Condition - Password Protection

Hello,

I have been trying to use wordpress’ native password protection on a page with a custom layout, my issue being the content in the layout is still showing since it is not part of the content loop.

Would be great if there was a way to conditionally show/hide sections if the page requires a password under Conditions.

I know how do to this the normal way with a custom template and checking for
post_password_required() but that takes me out of the layout builder and back to custom coding templates.

Let me know if there is another way this is possible.

1 Like

Hello @Noaviv,

Thanks for writing in!

Please be advised that when we released X theme 8.1 and Cornerstone 5.1 or the Pro theme 4.0 versions, we have introduced the element conditions. You can check out more about it here:

In your case, you can insert a section and then apply a condition that if the post requires a password, it will display. Regretfully this cannot be accomplished at the moment because the post_password_required() is not yet present in the set of Conditions. This is something we can add to our list of feature requests and make our developers aware of your issue. This way it can be taken into consideration for future development.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.