02/25/2015 at 8:54 am
#320685
Keymaster
@ Sam You want to use: 'slug' => $category->slug,
This should work, but it will not add the ancestor category slugs to the permalink. As an example, consider this category struct:
- Parent
-
- Child
-
- Grandchild
The struct should be /parent/child/grandchild/
This code will only get you, /grandchild/
Like I said, it should work since Connections only queries the category at the end of the struct but technically the permalink will be incorrect. Hope that makes sense.