Viewing 11 replies - 1 through 11 (of 11 total)
  • Brook

    (@brook-tribe)

    Howdy Camuel,

    Does this tutorial help address your issue? If not, let us know what’s missing so we can add to it. We certainly want to make the two as compatible as we can. Please let us know if that worked.

    Cheers!

    – Brook

    Thread Starter camuel

    (@camuel)

    Thanks for getting back to me Brook. I’m afraid the link you sent doesn’t contain a solution. I just posted a new Event and you can see that the Markdown hyperlinks aren’t working at all…

    http://camsmusic.net/live/fiddlers-ncw-1/

    It’s fine on pages and posts, just not events. Any ideas?

    geoffgraham

    (@geoffgraham)

    Hi camuel,

    Do you happen to know offhand whether Jetpack Markdown is compatible with custom post types–or is it only compatible with standard posts? That would go a long way to help explain what’s happening here.

    Cheers!
    Geoff

    Thread Starter camuel

    (@camuel)

    Interesting Geoff. Thank you for the pointer. I just Googled that and found a post with instructions:

    http://jetpack.me/support/markdown/

    It says:

    You’ll need to replace “product” by your Custom Post Type name.

    So what would the ‘Custom Post Type’ name be for the Events Calendar custom posts?

    We’re getting closer!

    Thread Starter camuel

    (@camuel)

    Just looking through this and I’m getting a bit out of my depth…

    There are 2 options to add Markdown support to a specific Custom Post Type on your site:

    You can add Markdown support to an existing post type thanks to the add_post_type_support() function. To do so, add the following code to a functionality plugin:
    add_action(‘init’, ‘my_custom_init’);
    function my_custom_init() {
    add_post_type_support( ‘product’, ‘wpcom-markdown’ );
    }
    You’ll need to replace “product” by your Custom Post Type name.

    Where would I add this code? Would I have to edit the code of the Events Calendar plugin? If so, can someone talk me through this please?

    Thank you

    Thread Starter camuel

    (@camuel)

    Here’s number 2 from the web page linked to above:

    You can add Markdown support when registering the post type, like so:

    // Register Custom Post Type
    function custom_post_type() {

    $labels = array(
    ‘name’ => _x( ‘Products’, ‘Post Type General Name’, ‘text_domain’ ),
    );
    $args = array(
    ‘label’ => __( ‘product’, ‘text_domain’ ),
    ‘supports’ => array( ‘title’, ‘editor’, ‘publicize’, ‘wpcom-markdown’ ),
    );
    register_post_type( ‘product’, $args );

    }
    // Hook into the ‘init’ action
    add_action( ‘init’, ‘custom_post_type’, 0 );

    Hey @camuel,

    That code can and should be added to your theme’s functions.php file.

    I hope this information helps!

    Thread Starter camuel

    (@camuel)

    Thanks momnt. Can you tell me what the Custom Post Type name is? I’ve to replace “product” by your Custom Post Type name.

    Barry

    (@barryhughes-1)

    Hi camuel, the custom events post type is:

    tribe_events

    Good luck!

    Thread Starter camuel

    (@camuel)

    It worked! Thank you, thank you, thank you!

    Plugin Author Brian

    (@brianjessee)

    Great glad it helps.

    I am going to marked this resolved!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Markdown’ is closed to new replies.