Closed willthemoor closed 8 years ago
The compass shortcode can come through any CMB textarea (not just WYSIWYG areas). Ensure that all text areas process shortcodes.
Can add a custom function to the site plugin along the lines of
function odfw_get_wysiwyg_output( $meta_key, $post_id = 0 ) { global $wp_embed; $post_id = $post_id ? $post_id : get_the_id(); $content = get_post_meta( $post_id, $meta_key, 1 ); $content = $wp_embed->autoembed( $content ); $content = $wp_embed->run_shortcode( $content ); $content = do_shortcode( $content ); $content = wpautop( $content ); return $content; } // USE: echo odfw_get_wysiwyg_output( 'wiki_test_wysiwyg', get_the_ID() );
Think this is pretty much in place. Moving to beta/post launch but keeping ticket in case we here from the team that something is awry.
The compass shortcode can come through any CMB textarea (not just WYSIWYG areas). Ensure that all text areas process shortcodes.
Can add a custom function to the site plugin along the lines of