WordPress.org

Forums

Posts 2 Posts
Advanced? filtering (1 post)

  1. ckarlsson
    Member
    Posted 1 year 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts 2 Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.