Dynamic Data - Simple Modification (lower case, strip characters etc)


Would it be possible to add a range of simple text modifications for dynamic data?

My specific scenario would be to use the name of a brand of a product in an image URL, where the brand name would have spaces swapped for hyphens and set to lower case.

This could be in the format of allowing some standard PHP/WP functions to be called on the output.

Perhaps a format such as {field_name|strtolower,sanitize_title}

That would then convert an example string from something like "Burger King" to "burger-king".

This would be hugely powerful in allowing greater use of custom fields from ACF.



Sign In or Register to comment.