Skip Navigation

[Resolved] I have no idea how to do this

This support ticket is created 5 years, 6 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: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1255687

I am trying to: connect my posts member to finance. I have tried looking around for any thread that could help but it seems not much information around or maybe it is just me. I have already tried this code:

add_action("gform_after_submission_65", "connect_review_data", 10, 2);
function connect_review_data ($entry){
toolset_connect_posts( 'member-finances', $entry[73], $entry['post_id']);
return '';
}

Link to a page where the issue can be seen: hidden link

I expected to see: The automatic connection between member and finance.

Instead, I got:

#1256515

Hello,

It is a custom codes problem, I suggest you debug your codes manually, line by line.

1) Make sure you have activated Toolset Types plugin in your website:
hidden link
You did not activate it in your website yet.

2) Follow our document to setup the function toolset_connect_posts():
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_connect_posts

For example, check the variables in your PHP codes:
Output the var $entry[73] directly, make sure it is a valid "member" post ID
Output the var $entry['post_id'] directly, make sure it is a valid "finances" post ID