1

Is it possible to include category or tag slug in the entry URL format? Would you please let me know the tags that make it, if possible?

1 Answer 1

2

Assuming you want the first category that's selected in the field, you'd set your "Entry URL Format" setting to:

{categoryFieldHandle.first().slug}

You can access any of your custom fields by their handle in a similar way.

1
  • 2
    Just in case there is no first categoryFieldHandle, I use {categoryFieldHandle.first().slug ?? 'no-category'} Commented Nov 5, 2017 at 16:45

Your Answer

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

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