- This topic has 15 replies, 2 voices, and was last updated 3 months, 1 week ago by .
-
Topic
-
Hi, I use this code in Views to show the data of Select, Checkbox list…:
{% for item in clone.mb_day %} {{ item.label }} {% endfor %}
How could I add “,” after all the items except the last one that comes with “:”?
EX: Now I have only MondayTuesdayFriday
I would like to have “Monday, Tuesday, Friday:”Another question: With this PHP code to show data of Select, Checkbox list…:
$values = rwmb_meta( $'mb_day' ); foreach ( $values as $clone ) { foreach ( $clone as $value ) { echo $value; } }
How to show the label of each item instead of raw data in the database (Monday, Tuesday instead of mo, tu…)? Also to make them come with “,” and “:” as the first question.
Thank you in advance.
- You must be logged in to reply to this topic.