WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Custom Field Taxonomies] Problem with custom field with spaces (5 posts)

  1. r-a-y
    Member
    Posted 4 years ago #

    Let's say I have a custom field called "Favorite Artist" (note that it isn't lowercase and has spaces) and I want to register this as a custom field taxonomy.

    I enter in "Favorite Artist" for the key, but CFT makes the key lowercase and changes the space to hyphen.

    Does CFT work with custom fields that are capitalized and has spaces?

    http://wordpress.org/extend/plugins/custom-field-taxonomies/

  2. scribu
    Member
    Posted 4 years ago #

    No, it currently doesn't work with custom fields that are capitalized and have spaces.

    You can rename the custom fields using the "Rename custom keys" box and use the title field to enter the capitalized and spaced version.

  3. r-a-y
    Member
    Posted 4 years ago #

    Are there plans to support capitalization + spaces in future versions of CFT?

    It's not a big deal right now, but I can see how it would be a hassle for those of us who use capitalized custom fields in a lot of templates and functions.

  4. scribu
    Member
    Posted 4 years ago #

    Capitalization & spaces don't work well in URLs.

    I could let you use capitalized custom keys, but the urls would still be sanitized. So, if you have "My Field" for example, the url would be

    http://example.com/?my-field=value

  5. r-a-y
    Member
    Posted 4 years ago #

    That sounds fine with me, scribu.

Topic Closed

This topic has been closed to new replies.

About this Topic