Repeating fields
Author | Posts |
---|---|
April 19, 2013 at 5:11 am 2511 | |
Question by repeating fields. Tell me, how to display them in the template? Option, automatic insertion is not satisfied. | |
April 19, 2013 at 10:54 am 2539 | |
Here’s a little example, insert it to your themes single.php. Give the right meta_key in that code. I hope you can customize it a little by yourself 🙂 | |
April 19, 2013 at 12:14 pm 2548 | |
| |
April 19, 2013 at 12:17 pm 2549 | |
Problem 2: after editing form via’s front end she gets out of the category.
| |
April 20, 2013 at 4:18 am 2602 | |
I’ve updated the documentation on how to show the meta fields. Take a look. | |
April 22, 2013 at 6:20 am 2658 | |
All right. Now displaying these fields. | |
April 22, 2013 at 10:50 am 2671 | |
Hmm, I never thought of that. I separated those fields with the comma, may be the decision wasn’t right. Although there is a quick fix, open up ‘`/class/render-form.php`’ and see line 11. Change the comma to something unique, may be pipe (`|`). So it should be like this: Now you need to change the sign in these codes too. For example: `$values = explode( ‘, ‘, $repeat_field );` should be `$values = explode( ‘| ‘, $repeat_field );` | |
April 22, 2013 at 11:09 am 2675 | |
Tareq, Thank you. It would be nice if in future versions you could choose a separator in the settings. |