How do slugify & glue formating work?
-
Hey guys,
first of all: Great plugin!
I have tried various combinations and I cannot find my mistake. I want to achieve two things:
1. If fields contain spaces those spaces should be transformed into dashes. It tried to use slugify=true to get this done. It did not work however.
2. When a field is a checkbox, I would like to output the values separeted only by space and not the comma. I tried to use glue=” ” to get this done.Both did not work, no matter where I put those formatting options.
This is how my shortcode looks:
<div class="[array attribute each=true slugify=true][field schwierigkeit][/array] [array attribute each=true][field wertigkeit][/array] [array attribute each=true glue=" "][field skill][/array]">
The output would however look like this:
<div class="sehr einfach hoch Programmieren, Texten, Designen, Kommunizieren">
“sehr einfach” comes from one custom field, so it should be separated by -. “Programmieren, Texten, Designen, Kommunizieren” come from a checkbox and should be separated by space.What do I need to do to achieve this?
Thanks for your help.
- The topic ‘How do slugify & glue formating work?’ is closed to new replies.