I have tried the credentials you provided, but get this error:
Error 1020 Ray ID: 4e30e51d8a6f53d6 • 2019-06-07 07:25:56 UTC
Access denied
Please check it.
I assume we are talking about this case:
There are three custom post types:
- region
- city
- article
Two post type relationships:
- one-to-many relationship between "region" and "city"
- one-to-many relationship between "city" and "article"
In a single "region" post, you are going to display related "city" and "article" posts information.
If it is, it is possible within a nested view, for example, you can try these:
1) Parent post view: related-city-list
- query city posts
- filter by post type relationship between "region" and "city"
- in view's loop, display city post information + below child post view "related-article-list"
2) Child post view,: related-article-list
- query article posts
- filter by post type relationship between "city" and "article"
- in view's loop, display article post information
3) in the content of single "region" post, display the parent post view shortcode, like this:
[wpv-view name="related-city-list"]
Thanks for the details, in your case, since there isn't direct relationship between post types "region" and "article", so for the nested views I mentioned above, it is expected result:
It shows cities as a parent, and lists articles under each city.
In you case, you might consider this:
1) setup many-to-many relationship between post types "region" and "article",
2) edit each "article" post, connect it with other "region" posts
3) then in a single "region" post, you will be able to setup a post view:
- query "article" posts
- filter by relationship of post types "region" and "article"
And display "article" posts information.
If I set up "region" and "article" with many to many relationships, do I need to enter it the region connection individually, or it can be automated. So if I select the city, it will automatically enter/set the "region"?
Unfortunately, that solution doesn't work for me.
I'm still doesn't understand why this can't work, seems like a common query to me. Anyway, thanks for trying.