• How can I get mp3 links in my custom fields to show up within a page???

    Every tutorial shows linking custom fields within a post, but this is different.

    The post # is 2437, the custom field key is ‘mp3’, and the value is “/songs/audio.mp3”

    Here’s my code:

    <object type="application/x-shockwave-flash" data="/dewplayer.swf" width="200" height="20" id="dewplayer" name="dewplayer">
    <param name="movie" value="dewplayer.swf" />
    <param name="flashvars" value="mp3=<?php echo get_post_meta(2437, "mp3", true); ?>&bgcolor=#FFFFFF" />
    <param name="wmode" value="transparent" />
    </object>

    dewplayer.swf is my mp3 player.

    Note: This works fine for my carousel on my homepage. Why won’t it work for pages?

The topic ‘Linking to Posts' Custom Field within Page’ is closed to new replies.