filter get_children to return all mime types EXCEPT ‘x’

Looks like this is two questions: how to get all the children that are audio, and how to get all the children that aren’t audio. 1) The post_mime_type parameter of get_children can actually take a wildcard, so you could use: $children = get_children(array( ‘post_parent’ => $post->ID, ‘post_status’ => ‘inherit’, ‘post_type’ => ‘attachment’, ‘post_mime_type => ‘audio/%’ … Read more

Is the .flac audio file format supported by WordPress?

Yes, the flac audio format is supported. See the doc block for the function wp_get_mime_types() (and other mentions). /** * Retrieve list of mime types and file extensions. * * @since 3.5.0 * @since 4.2.0 Support was added for GIMP (.xcf) files. * @since 4.9.2 Support was added for Flac (.flac) files. * @since 4.9.6 … Read more

Convert mp3 into ogg?

this is not the answer you are looking for, but why not just allow users to upload or input both mp3 and ogg files, and have the player play both mp3 and ogg files?

Replace audio links with jplayer using the_content filter

You well need to add a filter to the_content and alter the markup. This should replace the markup for <a> tags having URLs ending in .mp3, which you mentioned specifically in a comment. function replace_audio_link_cb_105555($match) { if (!empty($match[1]) && ‘.mp3’ == substr($match[1],-4)) { $your_long_block_of_markup = ‘<div id=”jquery_jplayer_#uniqueid” class=”jp-jplayer”></div> <div id=”jp_container_#uniqueid” class=”jp-audio”>… and so on …</div>’; … Read more

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