Anyone know how to allow either Shortcodes or PHP within Meta Boxes? (WordPress)

1 replies
Hey Warriors!

Anyone know how to allow the use of either a shortcode or PHP code within a custom metabox in WordPress?

I'm having a lot of trouble doing this one..

Help me out haha....

Joe Crosbie
#boxes #meta #php #shortcodes #wordpress
  • Profile picture of the author Joe Crosbie
    I've figured it out Warriors.


    $metabox = get_post_meta( $post->ID, '_cmb_sub_footer_content', true );

    echo apply_filters( 'the_content', $metabox );

    I chose entrepreneurship over further education despite being laughed at by my friends and family..

    I recently hit the "RESTART" button on my life, read my personal blog to find out how I did it :)
    {{ DiscussionBoard.errors[8585280].message }}

Trending Topics