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 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.