We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Removing Category ID from URL in conditiional?

Development and Programming

jordan-sowers's avatar
jordan-sowers
2 posts
12 years ago
jordan-sowers's avatar jordan-sowers

Hello,

Currently using a category conditional within a channel:entries tag:

{if category_id == "18"} 
 
<a href="http://{path=projects}/{url_title}">Show this link if it has category</a>

{/if}

The issue is that the outputted URL is:

projects/C18/the-title-of-a-post

How can I get rid of the C18?

I have my settings in Global Channel Prefrences to:

Use Category URL Titles In Links? = no.

Thanks for your help!

       
Boyink!'s avatar
Boyink!
5,011 posts
12 years ago
Boyink!'s avatar Boyink!

Don’t use the path variable.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.