Loading ...

How to get multi-value custom field?

Board index / PHP Melody - Video CMS

For PHP Melody version 2 and newer

Postby hont on Jan 04, 2015 2 pm


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:
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
Non-verified
 
Posts: 2
Joined: Sep 13, 2014 10 am
Reputation points: 0

Postby Andrew on Jan 06, 2015 6 pm


Thanks for reporting the issue hont.

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
User avatar
Andrew
Founding Developer
 
Posts: 7504
Joined: Jul 07, 2007 1 pm
Reputation points: 428


Who is online

Users browsing this forum: No registered users and 9 guests

cron