Markdown support

Home Forums Welcome! Pre-Sales Questions Markdown support

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #956611
    Festival
    Guest

    Does the Events Calendar support markdown in the event text?

    We have it enabled using the WordPress Jetpack plugin and it works with normal posts but doesn’t seem to work in events.

    Thanks.

    #956695
    Brian
    Member

    Hi,

    Thanks for using the Events Calendar.

    We do not have support for markdown. However, we use the WordPress editor in the event edit page.

    Is there a way to add markdown support for a custom post type for the editor?

    #956707
    Festival
    Guest

    Thanks for the reply.

    The jetpack support page (http://jetpack.me/support/markdown/) says:
    *******
    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.
    ******
    I’d be happy to add the the code – can you tell me where it should go?

    Thanks.

    #956719
    Brian
    Member

    You can place that coding in a custom plugin or in your theme’s function.php.

    You will need to change product to tribe_events as that is the event custom post type.

    #956724
    Festival
    Guest

    Great – got it working.

    Thanks.

    #956728
    Festival
    Guest

    Sorry – I spoke too soon!

    It works when viewing an individual event – http://test1.impacdublinaward.ie/wordpress-test/event/killers-of-the-king-charles-spencer-in-conversation-with-jane-ohlmeyer/ – but not when viewing the list of events – http://test1.impacdublinaward.ie/wordpress-test/programme/. The relevant text is Book Now.

    Thanks.

    #956744
    Brian
    Member

    You can follow our themer’s guide:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    And move and edit the list view templates in your theme to try and add markdown support.

    Beyond that there is not much else we can do for this unfortunately.

    #956849
    Brian
    Member

    I am going to close out this ticket as it has been marked answered. If you have any new questions related to this or another issue please just create a new ticket and we can help you out.

    Thanks

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