if($field['id'] == 8)
{
$url = $field_value->value;
parse_str(parse_url( $url, PHP_URL_QUERY), $videocode);
echo '<iframe width="420" height="315" src="http://www.youtube.com/embed/'.$videocode['v'].'" frameborder="0" allowfullscreen></iframe><br />';
}
1.create a new custom field in mingle.
2.go to /wp-content/plugins/mingle/classes/views/mngl-custom-fields
3.edit info_fields.php
4.put on line 8 this code:
if($field[‘id’] == 8)
{
$url = $field_value->value;
parse_str(parse_url( $url, PHP_URL_QUERY), $videocode);
echo ‘<iframe width=”420″ height=”315″ src=”http://www.youtube.com/embed/’.$videocode[‘v’].'” frameborder=”0″ allowfullscreen></iframe>
‘;
}
you can find the id of the custom made youtubefield in your database.
change the 8 in your own id!