• Hi, I am trying to put the related post categories into a drop down menu. what is the best way of going about this?

    I can get the related items of a post id from the url as such:
    $related = p2p_type( 'type1_to_type2' )->get_related( $_GET['id'] );

    …this works fine and returns an array.

    how would i then extract the connected_items into variables to use in the drop down menu?

    or am i going about this all wrong?

    Thanks. Antony

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

  • The topic ‘related custom post categories into a drop down menu’ is closed to new replies.