Skip Navigation

[Resolved] Limitation to author does not work

This support ticket is created 5 years, 10 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 5 replies, has 2 voices.

Last updated by toolset-dave 5 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#1194275

Hello,

I am using this code:

[cred_field field="@novinka-spolecnosti.parent" class="form-control" select_text="--- vyberte ---" author="$current" use_select2="never" required="true" validate_text="Vyberte společnost:"]

And I expectected that using author="$current" will show only the parent post assigned to current logged in user. But it does not work. What can be wrong?

I have also tried to switch theme to Twenty Nineteen and deactivate all other plugins.

#1194377

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I'm not sure but I think use_select2="never" will prevent author="$current" from working.

Can you remove the first attribute and re-test?

#1194407

Hi Nigel,

yes, without use_select2="never" it works. But I would like to use it without select2, because there is only one or a few parent posts.

#1194441

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

OK, I've escalated this to see whether we can fix it so that the attributes are independent of each other (which seems reasonable).

I'll let you know what feedback I receive.

#1199788

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Sorry for the delay getting back to you.

I have feedback from the developers that the use_select2 attribute is intended only for use with older Types 2 relationships and should not be used with Types 3 relationships.

They state that because of how this is implemented it is not possible to make attributes such as author work when also using the use_select2="never" attribute, and if any changes were to be made it would be to ignore the use_select2 attribute on anything except old Types 2 relationships.

So, I'm sorry, it won't be possible, and it is clear from the response of the developers that if a feature request were made to support this it would be rejected.

#1200053

Hi Nigel,

thank you for the information. I am little bit disappointed that this cannot be implemented. And I have seen that you have updated documentation about use_select2, it´s better now: https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field