wp-posts-to-posts icon indicating copy to clipboard operation
wp-posts-to-posts copied to clipboard

Add new method for each_related()

Open JiveDig opened this issue 9 years ago • 1 comments

I love that we can alter the main query via each_connected, but it would be really efficient to add all adjacent items to the main query via a new method.

each_related() would do the same as each_connected(), but show adjacent instead of connected items.

Thoughts?

JiveDig avatar Mar 29 '16 15:03 JiveDig

Seems like a reasonable idea.

If you end up writing a patch for it, please also try to add a unit test. On 29 Mar 2016 6:39 p.m., "Mike Hemberger" [email protected] wrote:

I love that we can alter the main query via each_connected, but it would be really efficient to add all adjacent items to the main query via a new method.

each_related() would do the same as each_connected(), but show adjacent instead of connected items.

Thoughts?

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/scribu/wp-posts-to-posts/issues/524

scribu avatar Apr 03 '16 20:04 scribu