开发者 | celloexpressions |
---|---|
更新时间 | 2023年9月18日 07:14 |
PHP版本: | 4.5 及以上 |
WordPress版本: | 6.3 |
版权: | GPLv2 |
(within the_content)
. Developers can change this by adding theme support for featured-audio
, via several API functions listed below.
Why use featured audio instead of embeding audio directly into posts? Featured audio organizes the content in a structured way, alowing infinite possibilities to customize the way users experience audio content on your site. The plugin ships with one example of this - the featured audio playlist widget. Add this widget to your sidebar and it'll automatically display a playlist of all of the audio files featured on posts shown on the current view, on views with more than one post such as the main blog page or a category page. The plugin also supports a recent audio playlist widget, which behaves similarly to a latest posts widget.
For a more comprehensive way to manage music with WordPress, particularly if you need to include sheet music alongisde audio, see the Sheet Music Library plugin.
/wp-content/plugins/
directorySee the "Developer API Functions" section for information on how to change where featured audio is displayed in your theme's code.
The featued audio playlist widget pulls in the featured audio associated with all of the posts displayed on the current view (auch as the blog index, a taxonomy archive, or an author archive). It won't display on single post or page views or on archive views where none of the posts have featured audio selected.
get_the_featured_audio()
function, props @jangeekho.