Support

Account

Home Forums Feature Requests Add Markdown support in Custom Fields

Solving

Add Markdown support in Custom Fields

  • Hi Elliot

    I have tested the new beta of Jetpack (2.8). You can Markdown in editor but not in the ACF one’s. And I use a lot.

    But you can add this in you plugin if you are interested. Here is the issue in Github.
    Matt give some function for it. It will be great!

    Thanks

    • James

    • January 31, 2014 at 1:06 pm

    Hi @Grégoire Noyelle,

    Thanks for the feature request 🙂

    Have a great day

  • Hi
    Great. Happy to help.
    Cheers
    Grégoire

    • Elliot

    • February 2, 2014 at 10:10 am

    Hi @Grégoire Noyelle

    Thanks for the info.
    It looks like you need to add in support for each post_Type you want to use it on.
    I’m not sure if ACF can do this for you as it is not a post_type manager.

    Let me know if I’ve overlooked something, and let me know if you have an idea of what I could add to ACF for markdown to work.

    Thanks
    E

  • Hi Elliot
    Happy that’s would interest you.
    The best thing to do in this case is to open a new issue here:
    New Issue on Jetpack’s Github
    That’s exactly what I’ve done and they’ll know you’re plugin 🙂
    After submitting, give me the link. I will send to one fellow from the Jetpack’s team. It will help.
    Cheers
    Grégoire

    • Elliot

    • February 4, 2014 at 9:30 am

    Hi @Grégoire Noyelle

    I don’t have the time to proactively find a solution to this limitation.
    My attention is 100% on ACF5, so this will have to wait.
    If you are able to lodge a ticket yourself, go for it, but I don’t think this is a limitation that ACF can overcome as it is post_type specific.

    Thanks for understanding.

    Thanks
    E

  • Hi Elliot
    No problem at all. I just want to bring you that info.
    We’ll see with a friend if we can make an add-on about that.
    Cheers
    Grégoire

    • vtmx

    • October 26, 2014 at 3:44 pm

    Now I added the plugin: Markdown Extra

    And add-on: ACF WordPress Wysiwyg Field

    In functions.php I added:

    // style editor
    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_content', 'wptexturize' );
    remove_filter( 'the_excerpt', 'wpautop' );
    remove_filter( 'the_excerpt', 'wptexturize' );
    remove_filter( 'acf_the_content', 'wpautop' );
    remove_filter( 'acf_the_content', 'wptexturize' );
    
    // markdown support
    add_filter( 'the_content', 'Markdown' );
    add_filter( 'the_excerpt', 'Markdown' );
    add_filter( 'acf_the_content', 'Markdown' );
  • @vmtx
    Thanks a lot. Could you explain more.
    You need to add the Markdown extra OR Jetpack’s Markdown Jetpack will be enought?
    Do it works with Flexible WYSIWYG?

    • vtmx

    • November 25, 2014 at 9:09 am

    @Grégoire Noyelle

    In my case Jetpack’s Markdown work only in main the_content() field.
    But the markdown extra works fine in all fields that you created, including ACF plugin. Just install.

    Link to download, markdown extra plugin, paste and extract in plugins folder: http://www.mediafire.com/download/k17ioezu5s74bqm/php-markdown-extra.rar

  • @vtmx
    Thanks a lot for your answer. I’ll give a try.
    Cheers

  • I think it is the better way
    https://wordpress.org/plugins/advanced-custom-fields-markdown/

  • What’s the status with this 5 years on?

    Still the Jetpack Markdown Extra doesn’t function in ACF Fields.

    Do we need to resort back to one or all of the out of date options suggested above?

    Answer I’m not sure I fully understand @vtmx filters above: if I don’t want to remove any functionality do i need the remove_filters or just the add ones?

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.