WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
3.5 Error (6 posts)

  1. gleenk
    Member
    Posted 1 year ago #

    Warning: Could not find direction(s). in /srv/www/htdocs/it/neoseo/www/wp-content/plugins/posts-to-posts/core/query-post.php on line 16

    What's that? How to fix it?

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

  2. jhollist
    Member
    Posted 1 year ago #

    I'm getting the same error, any help would be greatly appreciated. Thanks

  3. scribu
    Member
    Plugin Author

    Posted 1 year ago #

    More information is necessary:

    1) What are the parameters sent to p2p_register_connection_type()?
    2) What's the query that's causing the warning?

    I suggest putting this info into a gist: http://gist.github.com

  4. gleenk
    Member
    Posted 1 year ago #

    One of these:

    $ragioni = new WP_Query( array(
       'connected_type' => 'ragioni_to_case',
       'connected_items' => get_queried_object_id(),
       'nopaging' => true,
    ) );
    if ( $ragioni->have_posts() ) :
    
    ...
    
    while ( $ragioni->have_posts() ) : $ragioni->the_post(); 
    
    ...
    
    endwhile; endif;
  5. gleenk
    Member
    Posted 1 year ago #

    This problem comes also on 3.4 etc... everytime I use "connected_type" and "connected_items" etc.

    I already tried by adding "'connected_direction' => 'from',"

  6. gleenk
    Member
    Posted 1 year ago #

    I solved the error (there was some missing info in functions.php) but I can't see connections in the frontend now...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.