Support

Account

Home Forums Front-end Issues acf_form: WYSIWYG form does not provide "featured image" option

Solving

acf_form: WYSIWYG form does not provide "featured image" option

  • Hi,

    I am providing a front end form for a custom post type. Everything works fine, but unlike creating a post on /wp-admin/, the content editor provided through acf_form does not provide an option to declare an image as thumbnail/featured image.

    Below are my settings:

    acf_form(array(
                'post_id'       => 'new_post',
                'new_post'      => array(
                    'post_type'     => 'project',
                    'post_status'   => 'publish'
                ),
                'post_title' => true,
                'post_content' => true,
                'submit_value'      => 'Create a new project')
                );

    Thanks for your help,

    Henning

  • Did you try to add a “support” attribute?

    ‘supports’ => array(‘thumbnail’)

    Hope I did help you.

  • Hi tnchuntic,

    The Custom Post Type “project” has thumbnail support. It also works flawlessly when creating a new post in wp-admin, but not with the acf_form displaying the editor on the frontend.

    Any other ideas?

    Thanks for your help 🙂

  • Still was not able to figure out how to handle this, and I’m close to not using acf_form at all—any thoughts?

    Thanks

  • Ahh, I have the exact same issue. How to provide the featured image via acf_form ? Do I have to create a separate input element just for that and disable form and wrap it in my own? That seems tedious at best …

    Did you figure this out perhaps?

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

The topic ‘acf_form: WYSIWYG form does not provide "featured image" option’ is closed to new replies.