form does not generate $_POST request

According to the WP codex, the submit_button in WP will generate the HTML code for the submit button. (See example in Codex https://codex.wordpress.org/Function_Reference/submit_button ). So, additional info needed: what is the generated page code look like for the form? (from the Page Source). Is any code being generated? But that’s not your problem. The problem … Read more

foreach argument to get specific file types getting too many returns

You can add ‘post_mime_type’ => ‘…’ to your $args, as in: $mime_types = array (‘audio’, ‘application’) ; $args = array ( ‘post_type’ => ‘attachment’, ‘post_status’ => ‘inherit’, ‘post_mime_type’ => $mime_types, ) ; $query = new WP_Query ($args) ; See Mime-Type Parameters for more info. It’s not documented very well but the mime-types you set can … Read more