WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Function for theme programming?

[Resolved] Function for theme programming?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author PascalBajorat
    Member

    @pascalbajorat

    Hi,

    yes that’s no problem, here is my example code:

    <?php
    // http://codex.wordpress.org/Function_Reference/get_post_meta
    $custom_field_mp3 = get_post_meta(get_the_ID(), 'mp3', true);
    
    if( !empty( $custom_field_mp3 ) ):
    
    // http://codex.wordpress.org/Function_Reference/do_shortcode
    echo do_shortcode('[audio mp3="'.$custom_field_mp3.'"]');
    
    endif;
    ?>

    Please note: There is a new and important update out now v.2.2!

    If you like the Plugin please rate it 😉

    Awesome. Thank you.

    sorry wrong place

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Function for theme programming?’ is closed to new replies.