Relate custom post type to post
-
Hey,
I have linked a custom post type with the ‘posts’ post type. Yesterday it was working, today however it is not functioning anymore. This is the function.
// Link authors with post types function my_connection_types() { p2p_register_connection_type( array( 'name' => 'posts_to_auteurs', 'from' => 'post', 'to' => 'auteur' ) ); } add_action( 'p2p_init', 'my_connection_types' );
For some weird reason, this gives me an overview of all my ‘posts’ instead of all the ‘auteurs’ (dutch for authors).
Can someone help?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Relate custom post type to post’ is closed to new replies.