Skip to content

Need custom fields sanitized #3

Closed
@montreyw

Description

@montreyw

Hey,
I'm using your plugin alongside https://wordpress.org/plugins/custom-post-type-permalinks/. The problem is, if one of my custom field has special characters or has spaces or capitalization, your plugin tries to still use the field, as is, in the URL. What i would like to do is have your plugin "sanitize" the custom field data before it makes the URL. An example would be if i had a field that had "Athlan Piotr Pelczar" i would like it to come out as "athlan-piotr-pelczar". It looks like this fuction https://codex.wordpress.org/Function_Reference/sanitize_title or a similar one should resolve the issue but i'm not sure where to insert it in your code. Can you help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions