Hi
I am trying to secure the custom post type "Holiday Tours" single post page data to be password protected. In this CPT, There are multiple custom fields which collect additional posts data and then I created an elementor Single post template where I connected custom fields to Dynamically load the data and display them in post page. But If I apply password protected function, then output result only secures Post contents area but all other custom fields data still displays in the page. And I tried to secure custom fields data to be secured from Access but I can't find any option. So Please help me to secure all post contents (Including custom fields data and default wordpress fields data) and display only after entering the password.
If with elementor template it can't be done, then let me know how I can create a View to display all contents and secure this view with Post's password and when post password entered then this views reveal the data in the page.
I'm assuming that you are using the Elementor plugin to design your page layout correct?
Also for the area that is password protected, I suspect that this area is loading the post body itself and the areas that aren't are elementor widgets?
Can you confirm this or please provide a screenshot of the template editing page so that I can have a look at how the template was built.
Hi Shane
you have understood correctly. I have attached two screenshots,
1: It shows actual post template view which shows a password field that is actually for Post Body content and rest displayed contents are loaded using elementor widgets connected with Dynamic connecting functions.
2: Another screenshot is my personal idea of hiding full page contents and display a single password field with a short message, and once password is entered then actual post data gets displayed.
Unfortunately there is not much we can do about this here as wordpress only hides the post content area. Any additional widgets that are added to the page using Elementor will not be hidden under the password.
Shane,
Is there a way, I can create a View and add a condition to display the Views with a condition that will contain all the post information using fields and view,
For example I add a condition in toolset view to display View content only if the password entered. But I want to know what Condition will be used here.
Please help me if this is possible instead of using Elementor Widget. I can override the Elementor widgets and achieve the whole page template using View and custom html/css design.?? Let me know if possible
"Is there a way, I can create a View and add a condition to display the Views with a condition that will contain all the post information using fields and view,"
Yes you can do this however as mentioned it will need to be apart of the post body. So if you create a View with all the information, you will then need to create a content template for your post and then add the view to that content template. This is because our views plugin content templates hook into the post body for wordpress so the content will get hidden.
"For example I add a condition in toolset view to display View content only if the password entered. But I want to know what Condition will be used here."
This is actually not possible to do.
"I can override the Elementor widgets and achieve the whole page template using View and custom html/css design.??"
You can use content templates to create a page template but you won't have access to the elementor widgets to be used in that template.
Perhaps you can contact the elementor team to see if they may have a solution for this .