Multiple post types – share same ReWrite slug?
I’ve just done a project where two Custom Post Types needed to share the same slug. The trick is to overwrite the query vars via the request filter. Let’s call the post types ‘foo’ and ‘bar’, and they will share slug ‘foo’. The following code is rough and from memory for example only. Salt to … Read more