Akito
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Viewing topic 1 (of 1 total)
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Getting Related Posts from Intermediary Post Object (Many to Many)
Started by: Akito
in: Toolset Professional Support
Problem: I would like to use an intermediary post to query related posts in an M2M relationship. Solution: Use the toolset_get_related_posts API to query the two main post types using the intermediary post ID. An example from another ticket: $book = toolset_get_related_posts( 123, 'book-library', 'intermediary', 1000000,0, array(), 'post_id', 'parent' ); // returns Array( [0] => 234 ) $library = toolset_get_related_posts( 123, 'book-library', 'intermediary', 1000000,0, array(), 'post_id', 'child' ); // returns Array( [0] => 345 ) Relevant Documentation: |
|
2 | 3 | 6 years, 6 months ago |
Viewing topic 1 (of 1 total)