Adding Materialized Paths to WordPress

If you are looking to use materialized paths in WordPress, this is a simple way to add them in. It will automatically add paths to the approved post types. At that point, you can use the materialized key in your queries to easily find all children. If you’re doing massively nested data, it will make searching faster. This was used in a site that had a post type named entry. These entries were generic geographic items, such as a Building. A building would be under a piece of land, the land belongs to a city ( maybe ) which belongs to a county, state, and country. This provided a quick way to search for all entries in a state with one query.