media_handle_upload fails with gravity form submitted image

That error is very probabbly due to incorrect loading of the required files from wp-admin; note how in your code those files are loaded only when a scpecific input has data (input_13) but not in every case you need those files. You do this: if( !empty($_FILES[‘input_13’][‘name’])) { require_once(ABSPATH . ‘wp-admin/includes/file.php’); require_once(ABSPATH . ‘wp-admin/includes/image.php’); // …. … Read more

Populate a drop down list with post titles across a multisite network

You should be able to replace this section: $posts = get_posts( ‘numberposts=-1&post_status=publish&post_type=questionnaire’ ); $choices = array(); $choices[] = array(“text” => “Select Questionnaire”, “value” => “”); foreach ( $posts as $post ) { $choices[] = array( ‘text’ => $post->post_title, ‘value’ => $post->post_title ); } // update ‘Select a Post’ to whatever you’d like the instructive option … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)