• I’ve got a reciprocal many-to-many connection between news stories and programmes and I’m using get_related to show related news stories on the programme pages but also on the news pages (i.e. other news related to the same programmes).

    It works great except that news stories which are connected to two programmes are returned twice in the query. I presumably that’s because it sees them as being related in two different ways – once via each programme.

    e.g. for these connections:

    Story 1 – Programme A
    Story 1 – Programme B
    Story 2 – Programme A
    Story 2 – Programme B

    get_related() on story 2 returns story 1 twice and on story 1 returns story 2 twice.

    Any ideas how I can resolve this?

    http://ww.wp.xz.cn/extend/plugins/posts-to-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Posts 2 Posts] Related posts showing multiple times’ is closed to new replies.