Skip Navigation

[Résolu] Form Login Required

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.

Marqué : 

This topic contains 4 réponses, has 2 voix.

Last updated by larryL Il y a 7 années et 5 mois.

Assigned support staff: Luo Yang.

Auteur
Publications
#213821

I've used Access to require Subscriber and above to Create. So now when someone (who is not logged in) clicks on those form links they see nothing. How can I supply some helper information and the wordpress login field/social login block so they can do what they need to do?

Thanks!

Larry

#213952

Luo Yang
Supporter

Languages: Anglais (English ) Chinois simplifié (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hi Larry,

I suggest you try "Limiting read access to specific content"
https://toolset.com/documentation/user-guides/limiting-read-access-specific-content/
put the CRED form into a page, limit the access to the page with a custom user group, display a custom content template for People Without Read Permission, in the content template supply some helper information and the wordpress login field/social login block

#215563

OK, how do I place the login is into the custom template?

#215752

Luo Yang
Supporter

Languages: Anglais (English ) Chinois simplifié (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Please try create a custom shortcode for it like this:
1) add codes in your theme/functions.php

add_shortcode('my-login-form', 'my_login_form_func');
function my_login_form_func($atts){
	return wp_login_form(array('echo'=> false));
}

2) put the shortcode where you need: [my-login-form]

#215919

Thanks!