How to get multi-value custom field?
Board index / PHP Melody - Video CMS
2 posts • Page 1 of 1
Hi,
In my music site, a song can be sung by 2 singers, I have to fill the 'Singer' custom field 2 times with 2 singers.
If I use {get_video_meta_list video_id=$video_data.id}, it can get that multi-value field correctly:
But if I use {get_video_meta video_id=$video_data.id key='Singer'}, then it only gets the first value.
My question is how to get both value by the second way as I don't want to list all custom fields but only that 'Singer' field.
Thanks
In my music site, a song can be sung by 2 singers, I have to fill the 'Singer' custom field 2 times with 2 singers.
If I use {get_video_meta_list video_id=$video_data.id}, it can get that multi-value field correctly:
- Code: Select all
Singer: Ms A, Ms B
But if I use {get_video_meta video_id=$video_data.id key='Singer'}, then it only gets the first value.
My question is how to get both value by the second way as I don't want to list all custom fields but only that 'Singer' field.
Thanks
- hont
- Non-verified
- Posts: 2
- Joined: Sep 13, 2014 10 am
- Reputation points: 0
Thanks for reporting the issue hont.
I'll look into this and report back. It may be the comma that's causing the problem...
I'll look into this and report back. It may be the comma that's causing the problem...
PHP Melody v3.0
New Series Module? Publish series and episodes right from PHP Melody's Dashboard -->
https://demo.phpmelody.com/admin/series.php
New Series Module? Publish series and episodes right from PHP Melody's Dashboard -->
https://demo.phpmelody.com/admin/series.php
-
Andrew - Founding Developer
- Posts: 7504
- Joined: Jul 07, 2007 1 pm
- Reputation points: 428
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests