Skip Navigation

[Resuelto] post group access doesn’t work in non-default languages

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

This page is set to show a different layout for "guests" - showing the login screen.

it works only in english (the default language). when you switch to french or german, you can actually see the content of the page and the access control for the post group doesn't work anymore.

Solution:

I suggest you setup one same layout for all user role, in this layout display a visual editor cell, and use Access shortcode [types_access] to display different contents for different user role.

Relevant Documentation:

https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/

This support ticket is created hace 5 años, 6 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por Ido Angel hace 5 años, 6 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#1258517

hey,

take a look here:

enlace oculto

this page is set to show a different layout for "guests" - showing the login screen.
it works only in english (the default language). when you switch to french or german, you can actually see the content of the page and the access control for the post group doesn't work anymore.

i tried changing the settings in wpml for layouts, type groups, type user groups and type term groups - used every setting possible, but still didn't work.

also tried to create a wpml group, but this doesn't allow me to control specific post groups.

what am i missing?
thx!
ido

#1259115

Hello,

I suggest you setup one same layout for all user role, in this layout display a visual editor cell, and use Access shortcode [types_access] to display different contents for different user role, see our document:
https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/
Access Control for Contents Inside Page Content

#1259207

Hey Luo,

But the issue isn't with user roles. It's with translations.
You think if I apply your solution it would work in all languages?

thx!
ido

#1259279

Yes, it should be able to work in all languages.

You just need to display the login form for guest user, and display other contents for other user role, and translate this page into other languages,

#1259305

Works!!!
Thanks :))