Problem: I would like to set up a hierarchical post relationship system using a series of one-to-many post relationships. Country should be parent of State, State should be parent of Town, Town should be parent of Ad. I would like to allow site visitors to use a custom search View to filter Ads. Everything is working okay but I want to give my clients the ability to add an Ad at the State level, and I want the custom search filter to be able to find these Ads as well.
Solution: There isn't a perfect solution to this problem, because only one post relationship custom search filter is supported. You can add another post relationship for State > Ads, to allow your clients to associate an Ad at the State level. Then you can create a second View of Ads filtered by post relationship, using the Ad > State post relationship, and set by a URL parameter. Place this second View of Ads on the same page as the original custom search View, but display only the results and no filters.
There are limitations to this approach, for example, AJAX updates are not supported.
Problem: I have several CPTs on my site, and there are several relationships between these CPTs. When I edit one post, the "Add related post" and "Link to existing post" links do not work. Also the "gear" or settings icon button does not work.
Solution: There appears to be plugin conflict. Resolved by client pending further investigation by the client.
Problem: I have a custom post type that includes a repeatable field group (RFG). I have created a View of that RFG and included some custom fields using Types field shortcodes. Most of these fields appear as expected, but in some cases two of these fields appear as empty when they should include values.
Solution: Check the field slugs in the Types field shortcodes and ensure they are identical to the slugs in wp-admin. In this case, the wrong field slugs were used in the shortcodes.