Viewing 1 replies (of 1 total)
  • Thread Starter Cory

    (@corypina)

    Found an Answer: I setup custom template tags to echo my meta content, and I’m passing custom fields through the Markdown parser on a case-by-case basis. So here’s an example template tag for a single meta field called cp_meta_field.

    function cp_get_meta_field() {
    	global $post;
    	$meta = get_post_meta( $post->ID, 'cp_meta_field', true );
    	$meta = WPCom_Markdown::get_instance()->transform( $meta );
    	echo $meta;
    }

    Then in my template I’m calling cp_get_meta_field(), which has the Markdown parsing built in.

    I’m sure it’s not the only way to handle this, but it works. It’s probably possible to set this up to work on all meta fields everywhere, all the time, but I didn’t get that far (or need to).

    Source

Viewing 1 replies (of 1 total)
  • The topic ‘Support for Custom Fields in Custom Post Type’ is closed to new replies.