Skip to content

Need custom fields sanitized #3

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
montreyw opened this issue Jul 16, 2015 · 2 comments
Closed

Need custom fields sanitized #3

montreyw opened this issue Jul 16, 2015 · 2 comments
Labels

Comments

@montreyw
Copy link

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?

@athlan
Copy link
Owner

athlan commented Jul 16, 2015

Related with #1.

@athlan athlan added the bug label Jul 16, 2015
athlan added a commit that referenced this issue Jul 16, 2015
@athlan
Copy link
Owner

athlan commented Jul 16, 2015

Closed in dd901fd.

@athlan athlan closed this as completed Jul 16, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants