WordPress.org

Forums

remove 'unknown' in url when tag is empty (2 posts)

  1. drinkin_park
    Member
    Posted 1 year ago #

    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?

  2. drinkin_park
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic