I can't seem to find a way to display the parent and then the child category in a entry:

{exp:channel:entries channel="products" limit="6" }
<a href="{site_url}Products/detail/{categories}{category_url_title}/{url_title}">Details &raquo;</a>

this needs to display a link to domain.com/Products/detail/Parent-Category/Child-Category/url-title

I can only seem to get the parent to display

I also tried GW Categories with no luck:

<a href="{path="Products/detail/{exp:gwcode_categories entry_id="{entry_id}" style="linear" backspace="1" depth="1|2"}{cat_url_title}/{/exp:gwcode_categories}{url_title}"}">Details &raquo;</a> 

1 Answer 1



<a href="{site_url}Products/detail/{exp:gwcode_categories entry_id="{entry_id}" style="linear" backspace="1" depth="1|2"}{cat_url_title}/{/exp:gwcode_categories}/{url_title}">Details &raquo;</a>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.