Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin connection search box #453

Open
grapejuiceFM opened this issue Sep 5, 2014 · 3 comments
Open

Admin connection search box #453

grapejuiceFM opened this issue Sep 5, 2014 · 3 comments

Comments

@grapejuiceFM
Copy link

Hi,
this is my connection

p2p_register_connection_type( array(
'name' => 'event_to_post',
'from' => 'event',
'to' => 'post',
'reciprocal' => true,
) );

but in admin, when i try to connect an event to a post, the p2p admin box shows me all the post_type i have (not just 'post'). So It shows me many result (all the posts of all post type i have in wordpress), also image are display and I can't find easly the post I want to connectd.

How can I filter the admin p2p search to show me only the post type of the specific connection (in the example above I would find yust post o event).
Thank you so much

@grapejuiceFM
Copy link
Author

Hi,
any feedback?

Thank you..

@scribu
Copy link
Owner

scribu commented Nov 20, 2014

This looks like a conflict with another plugin that hooks into WP_Query. Normally, P2P automatically filters the search results.

@scribu
Copy link
Owner

scribu commented Nov 30, 2014

Related support thread: https://wordpress.org/support/topic/admin-connection-search-box

Might be some breaking change in WP 4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants