The simplest solution would be to put the audio player after the read-more link.
If that would prove cumbersome (e.g. you’ve already got too may posts with audio players), you could try hooking into the the_content
filter, and remove the audio player if not on a single-post view. e.g.:
function mytheme_remove_audio_player_from_home( $content ) {
// is_singular() is true for
// single posts, pages, and attachments
if ( ! is_singular() ) {
// do something, such as a str_replace() or
// whatever else would be appropriate, to
// filter out the audio player markup
}
return $content;
}
add_filter( 'the_content', 'mytheme_remove_audio_player_from_home' );
Related Posts:
- Difference between mimetypes: audio/mpeg and audio/x-mpeg
- How can I play sound in Java?
- Playing mp3 song on python
- compressed and uncompressed .wav files
- How to add a new audio (not mixing) into a video using ffmpeg?
- How do I make JavaScript beep?
- Making audio playlist with external audio files?
- How to get the number of times an audio file has been played
- Download button for wp audio player
- Is it possible to control the width of the WordPress audio player?
- How to add audio files to wordpress blog and making it auto play?
- Background audio player
- How to make WordPress audio playlist understand the direct links of audio files shared on google drive?
- Removing Theme Audio Player – Using Browser Default
- Audio preloading
- Adding a download link to native WordPress playlist
- Using track metadata from audio shortcode
- Is ‘preload=”none”‘ a valid parameter in the [audio] shortcode in WordPress 3.6?
- wp_audio_shortcode shows player and url [closed]
- Starting from what version WordPress provides own embedded audio player without need a plugin?
- WordPress Audio tag problem in Chrome
- Change audio player style
- How to get the number of times an audio file has been played
- Trim Audio Files [closed]
- Convert mp3 into ogg?
- Is the .flac audio file format supported by WordPress?
- audio link produces black box
- Need to hide/remove volume bar in WordPress Default Player to give more room to progress bar
- Clicking “Download MP3” downloads 0kb file
- Show audio player only in specific post type
- Trying to get the number of times an audio file has been played
- How to disable theme’s player styles so I could use plugin player?
- WP audio playlist width
- WordPress default audio playlist – how to add custom caption?
- How to restore deleted audio files from media library
- WordPress Audio Player
- Number of times an audio file has been played using custom player
- Trying to turn all of my posts into a soundcloud playlist and can’t figure out where to start
- Open template file in Pop Up
- MediaElement audio tag not visible
- WordPress audio link not working
- how to switch out music file for another using php echo
- What is the difference between M4A and AAC Audio Files?
- how to open an mp3 file with c
- Where can i get BigClip? [closed]
- Playing .mp3 and .wav in Java?
- Playing Sound In Hidden Tag
- Replace audio/video enclosure with player?
- Is wp_read_audio_metadata() function deprecated?
- Audio or playlist shortcode condition according to the amount of files on attachment page
- Using audio shortcode for .mp3 URLs with a query string
- WP REST – video and audio players
- How Can the Users Make a “Playlist” of Posts?
- WordPress audio player has two different styles
- Audio tags around Mp3 URL in content
- WordPress native “playlist” shortcode. Next and Prev there are but with no icons. How to fix?
- MP3 Manager for WordPress
- WordPress and WebRTC?
- Are .MP3 files with capital letter extensions allowed in [audio] shortcode?
- Customizing default Mediaelement player
- Audio file’s length (duration) is missing from Attachment Details in Media Library [closed]
- Audio player shortcode not showing up when using variable
- no content after shortcode
- Changing “elapsed time” to “time remaining” on MP3-jPlayer audio player with CSS or PHP changes
- How do I replace a audio gutenberg block to native audio wordpress
- How to get an event to fire using Google Tag Manager for the wordpress audio player?
- How to update the title of audio file through its attachment metadata
- filter get_children to return all mime types EXCEPT ‘x’
- RSS audio enclosures have length of zero (podcast duration is missing)
- Displaying audio player as preview in audio post in WP3.6
- Add audio attachment link to RSS
- How to add data attributes to the wordpress audio shortcode
- Audio post format with Advanced Custom Fields
- Can Postie be used to submit podcasts via email?
- How to add audio files to audio player in WordPress custom theme?
- How can I create a WordPress dynamic download counter
- Make Audio Element Persistent Across Pages
- Is the WP audio shortcode still relevant?
- How to upload Web-record Base64 Wave Audio file in WordPress Post (front-end form)
- Add audio file to post using custom term meta field as link [closed]
- Do audio files impact the loading time of the website?
- Display audio file in audio.php
- Insert Link to Audio versus Embed Audio Player
- Continous audio play in pages
- Create an archive page(loop) for edd products (music files) with an audio player?
- Using mediaelement to display gallery of audio
- WordPress core playlist function not showing artist and album info
- WordPress audio player add class randomly using Audio Album plugin
- Media Player gone on front end
- What does the “Show Images” do for WordPress music playlist?
- How can I add WordPress Audio Player as featured audio in Audio Blog Posts?
- WordPress / Audio player
- Passing a location-dependent array via wp_localize_script within a shortcode
- How to fetch all videos in custom page which uploaded in wp-admin (Media) in wordpress
- How to add audio media in a post?
- Displaying cf post formats with oembed
- Auto play audio using WP Maintenance Mode Plugin [closed]
- Display HTML5 jQuery Audio Player On Front Page
- Having problems getting the number of plays in a WordPress Playlist from an audio file
- Need help with wordpress audio preload