Category paths in an array?

  • I have a category set called topics, within the topics category template, I have another perch:categories tag


    HTML
    1. <perch:category required id="catTitle" type="smarttext" label="Title">
    2. <perch:category id="catSlug" type="slug" for="catTitle">
    3. <perch:category id="desc" type="textarea" label="Description" markdown size="s">
    4. <perch:categories id="content_type" label="WLRS categories" set="content-type" notes-before="Select which categories you want to display in this topic.">

    I need to get the category paths from set="content-type", I've done something similar elsewhere in the website I'm working on, but I was using perch_content_custom, that's not possible here as I don't have a region name to work with.


    Here's my PHP


    print_r outputs Array ( [0] => 11 [1] => 12 )



    Not sure why the array isn't showing me the category paths? :/

  • Great stuff! Pipit is super useful.


    Here's how I used it.


    I can then do other stuff to $topic_selected, but the key thing is the category paths are output as paths not IDs


    Thanks!