Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Insert array data in post_content

$
0
0

Replies: 0

Hi,
Great plugin. Thanks.
I’m trying to use your filter to add multiple fields to the post content. It’s working correctly for simple fields, but not for arrays. I’m trying to use this with Drag and drop multiple file uploads (mfile) and select multiple files (I’ve installed select2 jquery library).
I’ve tried to use classic php notation :
if(isset($form_data[‘upload-file-136’])){
foreach ($form_data[‘upload-file-136’] as $photos) {
echo $photos .”<br />”;
}
Any chance you can put me in the right direction or give me some examples.
Thanks


Viewing all articles
Browse latest Browse all 59525

Trending Articles