WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
When querying get_posts with connected_type, post_type argument is ineffect (2 posts)

  1. Ville Mattila
    Member
    Posted 1 year ago #

    Hi,

    I noticed that when querying connected types with get_posts query with connected_type argument, the results return all the connected posts no matter whether post_type is defined to limit the query only to certain "target" post type. Is this behavior intended?

    Ville

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

  2. scribu
    Member
    Plugin Author

    Posted 1 year ago #

    It depends. Please post your p2p_register_connection_type() call as well as your call to get_posts() using http://pastebin.com

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic