Skip Navigation

[Resolved] Bug "Filtering by author" (relationship)

This support ticket is created 3 years, 9 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 – 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: Africa/Casablanca (GMT+01:00)

This topic contains 7 replies, has 2 voices.

Last updated by matthiasV-2 3 years, 9 months ago.

Assisted by: Jamal.

Author
Posts
#1943737

For example:

We created a Relationship "Verkopers eigendommen" and applied it the Post form "Eigendom toevoegen". For Filtering by author we selected "Get only options by the current author". When we create a property at hidden link (being logged-in) our account name as a seller (field "Verkoper" below the page) does not appear. However, the seller is approved by admin so it should appear. If we select "Get options by any author" then our account name as a seller does appear BUT all other sellers also appear and that is NOT what we want. The same issue occurs at other form posts as well. Please help.

#1945461

Hello and thank you for contacting the Toolset support.

I checked this issue in a clean installation with the latest plugins version and it worked as expected. Check this screenshot hidden link the user "author" only gets the posts by the current author. You can log in as an administrator with the following URL hidden link
Log in as the author using: author / author@123

The form: hidden link
Is used here: hidden link

In order to isolate the issue from 3rd party components or custom code, please check if this issue appears when:
- Only Toolset plugins are activated. It will tell us if there is an interaction issue with another plugin.
- The theme is set to a WordPress default like Twenty-Twenty. It will tell us if there is an interaction issue with your theme or child theme's custom code.
If the problem disappears, start activating one at a time to track where the incompatibility is produced.

If this does not help, allow me temporary access to your website, preferably a staging site where the issue is reproduced, and let me check it further. Provide URLs for the form and where it is being used.
Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

#1945641

Sure. I confirm that the credentials are working for me.

I would need the following details:
- What form to check?
- What relationship field?
- What steps to follow to see the issue:
1. I enter xxx in the field
3. I expect to have only xxx
4. Instead, I get xxx

#1945995

All the info that you request for was in my first message.

Copy:

For example:

We created a Relationship "Verkopers eigendommen" and applied it the Post form "Eigendom toevoegen". For Filtering by author we selected "Get only options by the current author". When we create a property at hidden link (being logged-in) our account name as a seller (field "Verkoper" below the page) does not appear. However, the seller is approved by admin so it should appear. If we select "Get options by any author" then our account name as a seller does appear BUT all other sellers also appear and that is NOT what we want. The same issue occurs at other form posts as well. Please help.

#1946857

I understand that you already shared some details, but I am sure you will understand, that I do not know Dutch and that I am not familiar with your website. So, I kindly ask you to provide as many details as possible, otherwise, I'll try my best to check, but I may hit a wall at the end.

Here what I gathered so far:
- There is only one published post in the Verkopers custom post type hidden link
- This post appears when using the form hidden link
I don't see any issues at all.

If I am missing something, the easiest way to help me see it is to explain a test scenario that I will follow:
1. I go to xxx
2. I do xxx
3. I expect to have xxx
4. Instead i get xxx

If I can't understand and see the issue, I am afraid, I'll remain helpless.

#1949137

1. go to the post form "eigendom toevoegen" > Form editor > "Verkopers eigendommen" > "Get only options by the current author" is selected
2. login with _testaccount_2 (user with seller profile approved). Password: MzLTpoatq1@DBiZglKPMLCTh
3. go to hidden link and scroll down the page > the field "Verkoper (Registreer eerst een profiel als verkoper indien uw naam hier niet verschijnt of wacht op de goedkeuring van uw profiel door landman) should load the user "Matthias Test account2."
4. Instead i get "no results found."

#1949295

Thank you for this feedback.

It is expected that you get "no results found." because there are no posts authored by the user "_testaccount_2". The post that you mentioned is authored by "mvda" as you can see in this screenshot hidden link

I changed its author to "_testaccount_2" and now we can see it in the relationship field hidden link

Please note that I was not able to make this user author, even though the role(New subscriber) has the capability in Toolset Access, until I added the role Author to it. Maybe this something that you would like to address in another ticket.

#1949373

My issue is resolved now. Thank you!