wp_get_audio-extensions() not working
-
Hi there,
How do I create an archive page that displays specific media/ file types?
I have created an archive audio template (archive_audio.php) with ‘wp_get_audio-extensions()’ in body of template to display audio formats only, by following instructions here
However, when I insert ‘wp_get_audio-extensions()’ no posts or media are displayed on (archive_audio.php template) page, only page title. I have also attempted to use ‘wp_get_archives()’ to return audio files only, however default post_type options do not specifically isolate or provide [audio] or wp_get_audio_extensions() option, even if I create a $audio = wp_get_audio_extensions() variable.
Aiming to display audio, video, and images on their own archive pages.
- The topic ‘wp_get_audio-extensions() not working’ is closed to new replies.