• imromains

    (@imromains)


    I need to display a single custom field with multiple values, but I need to display those values with oEmbed on it.

    I found this, but it only shows a single value:

    echo wp_oembed_get( get_post_meta($post->ID, "entry", true) );

    And I found this:

    $songs =  get_post_meta($post->ID, 'entry', false) ; ?>
    <h3>This post inspired by:</h3>
    
    <ul>
        <?php foreach($songs as $song) {
            echo '
    <li>'.$song.'</li>
    ';
        } ?>
    </ul>

    but oEmbed is not enabled. Any idea how I can do it?

    Thank you !

The topic ‘oEmbed single custom field with multiple values’ is closed to new replies.