This is my code - at the moment I just want to output the posts in the relationship for a particular post. But I get an undefined function error. This code is placed in my functions.php file.
I am trying to:
Query the related posts in functions.php
Link to a page where the issue can be seen:
It can't really, it's going to be a feature to hook in to save_post. But for now, I'm just trying to output the results.
I expected to see:
An array of IDs in the relationship
Instead, I got:
Fatal error: Uncaught Error: Call to undefined function toolset_get_related_posts()
Ah okay, thanks Shane.
I did have it in a function, but wasn't getting any output from it - so I dragged it out just to test what I was getting!
Will do that instead and report back 🙂