Skip Navigation

[Closed] Relationship View does not work as expected, as pe or as per suggested solutions

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: Asia/Hong_Kong (GMT+08:00)

This topic contains 10 replies, has 4 voices.

Last updated by Luo Yang 1 year, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#2550807

https://toolset.com/forums/topic/relationships-does-not-show-as-the-example/
Case was closed before it was solved...

The instructions as given is not what I see in my installation. The choices and logic differs.
No matter how I select this it never shows the actual related posts for "Observation" on a "Bird" - It shows nothin OR it shows ALL "Observations" for ANY "Bird"

On the MAP block it does work
Setting a loop view on a PER FIELD basis works too

Using View - As per Tutorials or tip in the previous case ticket - does NOT work or even look same

Have latest of everything

#2551139

Nigel
Supporter

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

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

Hi there

If I have understood what you are aiming for from the other thread correctly, you have a one-to-many relationship between birds and observations. You have a content template to display bird posts, within which you want to use a View to display the observations related to that parent bird post.

It should be straightforward, but I understand you are having problems reproducing what is shown in the documentation.

I recorded a quick loom video to show me doing something similar (with a Project << Tasks relationship) on my local site, which you can follow here: hidden link

If that doesn't help, can you clarify where it goes differently when you try to follow the same steps.

I'm also going to mark your next reply as private so that if you do still have problems you can share access credentials to your site, and one of our team will be able to log in and see if they can overcome the problem.

If you do share credentials please be sure you have a current backup, and you should probably create a temporary admin user that you can later delete.

#2554061

Thank you for sharing the access details.

I tried to log in to the admin area but got the message:

'LOGIN BLOCKED: 2FA is required to be active on your account. Please contact the site administrator.'

Can you please disable this 2-factor authentication feature from your security plugin, during the course of this troubleshooting?

#2554817

Done! Disabled 2FA/MFA - Didn't think it would pop up since your account was not part of it and set in 30-days excemption. I was wrong. Please proceed.

#2555571

Unfortunately, I'm still getting the same message about the 2FA requirement.
( screenshot: hidden link )

#2555757

FIXED - The login had ended up as 'locked out' MFA Gone now on ALL Admins! // Tested to logout/login three times w credentials above. Works fine

#2558635

Thank you for waiting, while I looked into those pages and views.

1. In the content template 'Bird', I noticed that the last view used 'TestViewBirdObserv' is showing the related 'Observations' posts correctly.

As there are multiple views used inside this content template, the option to show only the related 'Observations' is not showing in that view's 'Content Selection' settings. But including the relationship query filter should be enough to limit the posts to only the related posts.
( screenshot: hidden link )

2. I've checked the 'Add Observation' page in a couple of different browsers and it seems to load correctly with the form. Can you please test it again after clearing all the involved caches?

3. The 'All Observations' page is using the view 'All Observations' to show the edit link:


<td><a href="[wpv-post-url form="edit-observation"]">Edit</a></td>

But this code for the edit link was not correct in its template. I've updated it to use the correct edit link format so that it uses the content template 'Edit Observation', like this:
( ref: https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#toolset-edit-post-link )


<td>[toolset-edit-post-link content_template_slug='edit-observation' target='self']Edit[/toolset-edit-post-link]</td>

I hope this helps and please let me know if you need further assistance.

#2560115

Thank you for looking into this. I have been sick for a few days but looking into this now and will report back here after that.

#2562247

Sure, please take your time, and hope you feel better soon.

#2566651

Hi, still evaluate this so need a bit more time.

#2567305

I have marked this ticket as "Waiting for feedback" status, please update here if you still need assistance for it.

The topic ‘[Closed] Relationship View does not work as expected, as pe or as per suggested solutions’ is closed to new replies.