I have this:
{exp:channel:entries channel="{segment_2}” category=”{translate_category}”}
• {title}
{/exp:channel:entries}
{translate_category} is this snippet:
{if segment_3 == "ankle_foot"}2
{if:elseif segment_3 == "shoulder"}10
{if:elseif segment_3 == "other"}9
{if:elseif segment_3 == "neck"}8
{if:elseif segment_3 == "knee"}7
{if:elseif segment_3 == "hip"}6
{if:elseif segment_3 == "hand"}5
{if:elseif segment_3 == "elbow"}4
{if:elseif segment_3 == "back"}3
{if:elseif segment_3 == "wrist"}11
{if:else}x
{/if}
The problem is, the snippet doesn’t work as a tag parameter. Is there a better way to put the Category ID in the parameter by looking at the URL title in the URL segment?