Support

Account

Home Forums General Issues Front end form user embeds

Unread

Front end form user embeds

  • Hi

    I am looking for a way to allow my users to post embedded content from common sources, for instance YouTube, Instagram, Twitter, Pinterest etc. I created a front-end form and set:

    'post_id' => 'user_' . $current_user->ID,
    'kses' => true,
    'field_groups' => array(414),
    'form' => true,                    
    'submit_value' => 'Save / update changes'

    This worked for a while, but has now stopped and it’s stripping out all the embed code again. I think this may have happened around the time of the last WordPress updated to v5 but I’m not 100% sure. In any case it’s just not working any more.

    Further to this, I guess allowing users to post such content can be a bit of a security issues so was wondering if there was any alternative anyone can suggest? I have tried using the oEmbed field type but that also doesn’t pull in any content via the front end form – I just get a blank output.

    Is anyone else facing these issues since the last big WP update?

    I’m using the latest version of ACF Pro and WP. All other fields in the form will save data, so its not an issue with the form just not saving anything – it is only this embedded content that is problematic.

    Cheers

Viewing 1 post (of 1 total)

The topic ‘Front end form user embeds’ is closed to new replies.