WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
Advanced? filtering (1 post)

  1. ckarlsson
    Member
    Posted 5 months ago #

    I'm not sure if I just dont understand the documentation or if there simply isn't a solution for this. I'm trying to do the following:

    I have a custom post type "House" and a custom post type "Appartment". The relation :

    p2p_register_connection_type( array(
            'name' => 'appartment_to_house',
            'from' => 'appartment',
            'to' => 'house',...

    The appartment have an ACF (Advanced Custom field) called "rooms".

    I would like to list all houses that have appartments with the value of the ACF field "rooms" beeing "2".

    I can list all the houses, and all the related appartments like described here but how can I narrow them down as described above?

    https://wordpress.org/plugins/posts-to-posts/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.