Showing linked posts in loop
-
Hello,
This plugin seems like it’s extremely powerful, but I’m just trying to figure out how to output a list of linked posts within a loop of the parent. My relationship is setup between post types (one of “ideas” and one of “tasks”). I’m trying to addSubPosts::API()->get_childs( $link_id, $parent_id )
within the loop of a single post page for the “ideas” post type, so it will show the attached sub posts dynamically depending on what post we are currently on. If everything was outputted in a list that’d be helpful too. I just need a full sample of the code (I’m assuming I can use $post->ID for $parent_ID but what is $link_ID for, and how do I echo out the results?)
Any help is appreciated.
Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Showing linked posts in loop’ is closed to new replies.