Home › Forums › Welcome! › Pre-Sales Questions › Markdown support
- This topic has 7 replies, 1 voice, and was last updated 11 years, 1 month ago by
Brian.
-
AuthorPosts
-
April 20, 2015 at 5:20 am #956611
Festival
GuestDoes 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.
April 20, 2015 at 8:03 am #956695Brian
MemberHi,
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?
April 20, 2015 at 8:16 am #956707Festival
GuestThanks 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.
April 20, 2015 at 8:23 am #956719Brian
MemberYou 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.
April 20, 2015 at 8:34 am #956724Festival
GuestGreat – got it working.
Thanks.
April 20, 2015 at 8:37 am #956728Festival
GuestSorry – 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.
April 20, 2015 at 9:07 am #956744Brian
MemberYou 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.
April 20, 2015 at 3:04 pm #956849Brian
MemberI 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
-
AuthorPosts
- The topic ‘Markdown support’ is closed to new replies.
