WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
Connections gone and error in 3.5.1 (1 post)

  1. hmayaktigranyan
    Member
    Posted 1 year ago #

    Hi,
    after upgrade all connections disappeared,in db they are ok,under tools it shows correctly.
    In local I see this error in admin area for adding connections:
    Warning: Could not find direction(s). in C:\server\huridocs\acerwc\site\wp-content\plugins\posts-to-posts\core\query-post.php on line 1

    Also there is problem when I use

    $args = array(
                                    'post_type' => 'document',
                                    'posts_per_page' => -1,
                                    'orderby' => 'title',
                                    'order' => 'ASC',
                                    'connected_type' => 'country_to_document',
                                );

    Warning: Could not find direction(s). in C:\server\huridocs\acerwc\site\wp-content\plugins\posts-to-posts\core\query-post.php on line 17

    this is connection details:

    p2p_register_connection_type( array(
                'name' => 'country_to_document',
                'id' => 'country_to_document',
                'from' => 'country',
                'to' => 'document',
                'reciprocal' => true
        ) );

    Thanks for help.

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by hmayaktigranyan
  • This topic is not resolved
  • WordPress version: 3.5.1