I have data where there is an object reference to a member object.
Example: Issues has an object reference Member, to identify it belongs to them. I realize it would probably be better to create a relationship, but what's done is done. Is there a way to get all Issues belonging to Member X? Where Member is an object reference?
Hello. Thank you for contacting the Toolset support.
Well - in order to guide you in the right direction I will have to review your actual data structu4re and have to analyze how the things are stored where and what things you want to display where.
Can you please share problem URL where you want to display the results and for what X member you want to retrieve all related issues and where I can find how issues linked to members.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Ok - and you want to get it using PHP way or using view?
I want to get all Form Technique Issues where Post Reference Member is X:
====>
From where you will get the value of post reference member - is it while displaying the sing post of Technique Issues post type or while displaying the single post of post type Member?
Post reference field is managed as one-to-many post-relationship.
So, from the "Query Filter" section of your edit view page, you will have to add the filter for "Post relationship or repeatable field groups owner" and select your post reference field's Member relationship and then chose your desired filter method like using URL param or other.
Please check the following screenshot:
- hidden link