1

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>
{/exp:channel:entries}

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

Solved

<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>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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