[Resolved] Audio Post Format

Home Forums Support [Resolved] Audio Post Format

Home Forums Support Audio Post Format

Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • #756444
    Gwyneth

    Tom, that link just goes back to this page.

    I’ve updated the plugin

    But still have no Audio format on posts

    #756449
    David
    Staff
    Customer Support

    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 );
    #756451
    Gwyneth

    WOW! that worked, thank you

    #756512
    David
    Staff
    Customer Support

    You’re welcome

    #759302
    Gwyneth

    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

    #759694
    Tom
    Lead Developer
    Lead Developer

    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/

    #760022
    Gwyneth

    Brilliant! WP is endless journey of learning

    #760298
    Tom
    Lead Developer
    Lead Developer

    Yes it is! 🙂

Viewing 8 posts - 16 through 23 (of 23 total)
  • You must be logged in to reply to this topic.