Home › Forums › General Issues › How to turn custom fields into something I can insert into WYSIWYG editor? › Reply To: How to turn custom fields into something I can insert into WYSIWYG editor?
Okay so I think the shortcode thing is probably in the right direction.
Here’s what I’m trying right now. I created a custom post type called “Galleries”. The only field group for it is the repeater that I mentioned earlier.
In order to insert a gallery in the middle of a blog post, my plan is to have a shortcode that injects one post (the custom Gallery Post ) into another.
I just trie ddoing this using this plugin: https://wordpress.org/plugins/post-content-shortcodes/
But it only seems to work for injecting The Content (from the WYSIWYG editor) and won’t pull in anything else from the php loop etc.
Any way of doing that? Or am I going to make my own shortcode etc using the codex?
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've just released ACF 5.12.3 with a security fix to prevent arbitrary file uploads to forms with ACF fields.— Advanced Custom Fields (@wp_acf) July 14, 2022
Now that we've released this update, we recommend updating your sites as soon as possible.
© 2022 Advanced Custom Fields.