foreach $FILES create post how to

Got it, so I changed the name of the file input from thumbnail to thumbnail[]. Then I wrapped the above paste in a function and added this part at the top of the file and it works perfectly: if ( $_FILES ) { $files = $_FILES[‘thumbnail’]; foreach ($files[‘name’] as $key => $value) { if ($files[‘name’][$key]) … Read more

Changing wp_insert_post() location

This is theoretically possible. While there is no explicit way to do this in post insert/update process, all queries go through query filter before being run on database. Practically this is a no go. The level of complexity in WP’s handling of post querying is incomprehensible and full of edge cases. There is no easy … Read more

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