WordPress.org

Forums

Posts 2 Posts
[resolved] Which api to use for connecting when front end posting? (2 posts)

  1. Ethan Shaw
    Member
    Posted 3 years ago #

    I used to be able to use p2p_connect to link a post I created on the front-end to the page the new post form was on. Now it generates a fatal call. Which api should I use now?

    Using this: p2p_connect($pid, $project_id);

    Generates this: Fatal error: Call to undefined function p2p_connect() in wp-content/themes/mytheme/content-page.php on line 65

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

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    p2p_type( 'your_connection_type' )->connect( $pid, $project_id );

    If you have no idea what 'your_connection_type' is, see https://github.com/scribu/wp-posts-to-posts/wiki/Basic-usage

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts 2 Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic