Skip to content

i need to list all available connected posts #385

Open
@nicmare

Description

@nicmare

this is my site: http://my-benefit.de/bootstrap/ (user / user2009)
I use post2post for the "pro vs contra" section. this is my functions code:

function my_connection_types() {
    p2p_register_connection_type( array(
        'name' => 'posts_to_posts',
        'from' => 'post',
        'to' => 'post',
        'reciprocal' => true
    ));
}
add_action( 'p2p_init', 'my_connection_types' );

this way i can link those two articles to each other. works like a charm! i get the related post on single.php

But i want to display all connected posts on home.php
is there a performant way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions