Problems when searching related posts
-
Hi,
Again thank to Scribu for this very useful plugin. I have a problem in my admin panel, when I try to connect two different post types.
For example I have one dedicated to games (‘games’) and others for the news or reviews who talks about these games (‘news’ and ‘reviews’).
When I am editing a ‘news’, the “connected games” box works fine to create ‘games’ quickly or choose one of the latests created ‘games’. The problem is : when I search a ‘games’ in this box, the results are ‘news’ or ‘reviews’… anything but ‘games’ so I can’t choose the item I want.
Of course the item I am searching is already created. When I edit this ‘games’, I can search the related ‘news’ in the box and connect it to the ‘games’, but this is really not practical cause I have to do that for many many many posts…
The problem is the same when I try to connect ‘games’ when editing ‘reviews’.
Here is my functions.php :
p2p_register_connection_type( array( 'name' => 'games_news', 'reciprocal' => true, 'from' => 'news', 'to' => 'games' ) ); p2p_register_connection_type( array( 'name' => 'games_reviews', 'reciprocal' => true, 'from' => 'reviews', 'to' => 'games' ) );I hope my poor english is not confusing.
Thank you for your help!
The topic ‘Problems when searching related posts’ is closed to new replies.