• drinkin_park

    (@drinkin_park)


    Hello guys,
    I have a problem regarding permalink structure. Currently my structure is

    /%category%/%band%/%postname%

    as category is ‘lyric’, ‘music video’ etc
    ‘band’ is the corresponding band name

    Now I have another category which doesn’t concern to bands at all so when my custom post type ‘band’ is empty there is an ‘unknown’ in the url which I want to remove. Is there any way to put a if else operator in the permalink structure or any other way of removing empty values?

Viewing 1 replies (of 1 total)
  • Thread Starter drinkin_park

    (@drinkin_park)

    I understand this has to be done with rewrite rule. Any quick tutorial or plugin to save time reading whole codex? 🙁 Please?!

Viewing 1 replies (of 1 total)
  • The topic ‘remove 'unknown' in url when tag is empty’ is closed to new replies.