Related posts – associate index of Children posts with Parent posts?
-
Is it possible to associate the index of one custom post type with the post id of a different custom post type?
Basically I have a Parent post type and Child post type. When I run a search I want to look within the Parents and Children but only return Parents that match and/or Parents who have Children that match.
hope that makes sense .. at the end of the day I think I want to duplicate the index of Child post types, replacing the Child post ID with its Parent post ID
Alternatively I think it would also work to completely replace the ‘doc’ column for any Child entries in the index, changing the Child post ID to its Parent post ID
is there a hook that would let me do this?
- The topic ‘Related posts – associate index of Children posts with Parent posts?’ is closed to new replies.