Skip Navigation

[Resolved] Want to secure Custom Post Type and its Custom fields data with Password

This support ticket is created 4 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by manishB-2 4 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#1389569
screenshot.PNG

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.

Please see the attached screenshot.

#1389849

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Manish,

Thank you for getting in touch.

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.

Thanks,
Shane

#1389869
protected-view.png
actual.png

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.

Please help. its really urgent.

#1390019

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Manish,

Thank you for confirming.

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.

Perhaps you can try working around it with this plugin below.
https://wordpress.org/plugins/password-protect-page/

Thanks,
Shane

#1390023

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

#1390045

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Manish,

"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 .

Thanks,
Shane

#1390289

My issue is resolved now. Thank you!