Support

Account

Home Forums Front-end Issues Attach uploads from post_content to post in frontend Reply To: Attach uploads from post_content to post in frontend

  • Like I said, I don’t know if the regular expression is returning what I think it is because I have not tested it. I would output it to see

    
    // temp line to test what is matched
    var_dump($matches); exit;
    

    Also, Post ID’s must be integers and $matches will contain strings if it’s returning anything

    
    'ID'           => intval($imagat),