Tell us what you are trying to do? I have a many to many relationship. In this particular case I have one post which is linked to many other posts. I want to get an indexed list/array of all the linked posts. When there is only one linked post I have used the shortcode [wpv-post-id item='@slug.parent'] this works fine. When I use the same shortcode for the above case it only gives me the first linked post. How can I get the other linked posts using this shortcode?
Is there any documentation that you are following?
Yes thank you, I can do that but then I need to be able to address them individually by some index. For examle say all the ID are in array called $posts. I then need to address each one $posts[0], $posts[1], $posts[2], ...
Using this hook will allow you to return an array of posts in the relationship whether it be the parent or child. Crafting this into a custom shortcode will also allow you to pass various parameters into the hook that you can use to pick off individual IDs if needed.
One of the Tools that can be used to generate the framework of your shortcode is. hidden link
Using this hook will allow you to return an array of posts in the relationship whether it be the parent or child. Crafting this into a custom shortcode will also allow you to pass various parameters into the hook that you can use to pick off individual IDs if needed.
One of the Tools that can be used to generate the framework of your shortcode is. hidden link