Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #409681

    Hi there, my old theme had an area where all my music embeds are call “mvp_video_embed”. Those embeds are not showing in Enfold. How can I make them show in single pages (and home/category/etc?) It would just take too long to go in every post and copy the code into the post.

    Here is an example post with the song missing. But the code is in the “mvp_video_embed” field.
    http://test.theburningear.com/2015/02/charlie-winston-hello-alone/

    Thank you!

    #410063

    Hi theburningear!

    I would try contacting the theme authors and ask if you can copy their code into a plugin so you can use it with other themes. Other than that I would try looking through plugins in the WordPress repo for displaying music embeds.

    Or I would also consider using post formats. Here is an example of an audio post format, http://kriesi.at/themes/enfold/2009/10/21/snowboarding-fun/.

    Regards,
    Elliott

    #410122

    Hi Elliott,

    It seems unnecessary to use a plugin (or post format) since the Soundcloud embed code already exists in the post. Its just being blocked by the Enfold theme. You can see the code in this screenshot
    https://app.box.com/s/59ipwwih70iht5x5r3dpbzyefekydwi7

    But its not displayed on the post.
    http://test.theburningear.com/2015/02/lyves-shelter/

    There must be a way to just include this custom field in every post. A simple line of code or something.

    Thank you!

    #410337

    Hey!

    Try to edit includes > loop-index.php, look for this code:

    echo $content;
    

    Below, add this:

    $mvp_video = get_post_meta( $the_id, 'mvp_video_embed', true );
    			if($mvp_video) { echo $mvp_video; }

    Best regards,
    Ismael

    #410650

    This worked great, thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Add embed field to post’ is closed to new replies.