WordPress.org

Support

Support » Plugins and Hacks » Posts 2 Posts » problem with get related

problem with get related

  • Hello everyone!!

    I have “movies” linked with “scenes”

    In my scene page, i want to display all other scenes of this movie.

    So I used the get_related method

    $related = p2p_type( 'movie2scene' )->get_related( get_queried_object() );

    It works well if my scene is linked to a movie but if I am on a scene page which is not linked to a movie, the function get_related displays others scene from other movie, without any distinction….

    Could someone help me about it?

    thank you for your help

    http://wordpress.org/extend/plugins/posts-to-posts/

  • The topic ‘problem with get related’ is closed to new replies.
Skip to toolbar