Archived topic
Audio Post Format
22 replies · Started by Gwyneth on December 8, 2018
Tom, that link just goes back to this page.
I've updated the plugin
But still have no Audio format on posts
Hi there,
Tom's link should take you to function that he updated, if not here is his updated code:
add_action( 'after_setup_theme', function() {
add_theme_support( 'responsive-embeds' );
add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'status', 'audio' ) );
}, 100 );
WOW! that worked, thank you
You're welcome
OK, I still have a problem
Audio format now available and post displaying in archive with audio player... but displaying full content not excerpt see this category https://efthelps.com/category/eft-news/ the Anxiety Gremlin post is displayed in full
How do I set that to excerpt only?
thanks
When using a post format other than standard, the full content is always shown. This is because excerpts don't allow HTML, which would remove the audio player (as well as the other content).
One option is to use the More Tag to choose your cut off point: https://docs.generatepress.com/article/using-the-more-tag/
Brilliant! WP is endless journey of learning
Yes it is! :)