Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

HOW TO FILTER PARENT POSTS LIST BY THEIR CHIELD FIELDS (T.C.)

$
0
0

Hi,
First of all i want to send to you apreciations about the plugins.

My case is:
We have custom post type CITIES and custom post type HOUSES
CITIES fields are: NAME and COUNTRY
HOUSES fields are: STREET and ROOMS
CITIES is parent of HOUSES (relationship)
We need:
A list containing all the CITIES with their HOUSES.
A user filter that can retreive all the CITIES that have HOUSES with ROOMS field value = 3

Table example:
CITY_NAME | COUNTRY | STREET | ROOMS_NUMBER
New York US 50 3
London UK Bond 2
London UK Regent 3
London UK Bond 5
After the user filtering the table become:
CITY_NAME | COUNTRY | STREET | ROOMS_NUMBER
New York US 50 3
London UK Regent 3

P.S. ROOMS is a field of chield HOUSES
And we need a list of the 2 types fields parent and chield fields in a single table.

Thank you in advance.
T.C.


Viewing all articles
Browse latest Browse all 20145

Trending Articles