Home › Forums › Feature Requests › 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
Hi @Grégoire Noyelle,
Thanks for the feature request 🙂
Have a great day
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
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
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?
@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?
The topic ‘Add Markdown support in Custom Fields’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.