[Resolved] Audio Post Format

Home Forums Support [Resolved] Audio Post Format

Home Forums Support Audio Post Format

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #751553
    Gwyneth

    Audio does not appear on the post format list for most of my posts
    But for older ones when I was using another theme it does
    How do I set Audio post format so that the audio player displays in the post on the archive list

    #751724
    Leo
    Staff
    Customer Support

    Hi there,

    Can you test if the audio player shows up correctly when using a twenty series WP theme?

    Those archive pages should be automatically generated by WordPress so GP shouldn’t interfere with the functionalities.

    Let me know ๐Ÿ™‚

    #752100
    Gwyneth

    OK. I went to 2016 theme and the two problems, audio post type not available, video post excess padding on archive page, are not showing up with 2016 and are showing when I go back to GP

    2016:- When editing a post the Post Format drop down menu includes the option Audio,
    GP:- editing the same post Audio is not available on the Post Format list

    2016:- Post archive page and category page do not show huge padding around the video image for video posts, looks normal but displaying all content, I didn’t bother to tweak customiser
    GP:- The archive page and category pages show huge padding gaps above and below video image see https://efthelps.com/eft-articles/

    I am a Gutenberger using the plugin, not yet updated to 5.0, and used the Vimeo block to embed the videos

    #752110
    Gwyneth

    Just to add… this category shows the problems https://efthelps.com/category/eft-news/

    Tapping with Children post – video post, does show video but with excessive padding

    Gwyneth & Jondi – this should be an audio post but there is no option to select Audio on post format so it is a Standard post and player is not displayed

    EEG Brainwaves and EFT – this is the only audio post which does allow Audio as a post format option and correctly displays the player in the archive

    Three other posts are Standard posts

    Again all are Gutenberged

    #752180
    Tom
    Lead Developer
    Lead Developer

    You may need to add the additional block styles to get responsive videos.

    Try adding this function:

    add_action( 'after_setup_theme', function() {
        add_theme_support( 'wp-block-styles' );
    } );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Are you not seeing the Post Format select here?: https://www.screencast.com/t/FYBjzqNT1TWG

    #752182
    Gwyneth

    hello Tom

    1. I have installed the code snippets plugin and added the code
    It doesn’t make any difference to the display of the video posts. I’ve never done anything with php before so I hope I did it right.

    2. I do see the Post Format select but when opened the Audio post option is not there, except on one of my posts

    Gwyneth

    #752184
    Gwyneth

    HELP!!!

    Went to hosting console and cleared cashe and now navigation main menu is completely screwed up! see https://efthelps.com/

    #752186
    Gwyneth

    Ok I deactivated the code snippet but the menu is still completely screwed up

    #752212
    Leo
    Staff
    Customer Support

    Hmm menu looks fine to me:
    https://www.screencast.com/t/AVMJXholFH

    Am I missing something?

    The code Tom provided has nothing to do with menus.

    #752229
    Gwyneth

    The menu looks fine now because I removed the code again. It was when I added the code with the snippet plugin and cleared the cache that the main navigation menu went all over the place, but it maybe because I had not cleared the cache after switching the theme to 2016 and back again

    But even with the code the post archive and audio format problems did not change

    I’m working on the live site because I have to keep a copy of my old site in the staging area. So I could not leave that menu snaffu up there

    Its getting late here, uk time, time to cook, I’ll try again tomorrow.

    #752395
    Tom
    Lead Developer
    Lead Developer

    I don’t think that function would affect your menu in any way. It may have been a separate issue.

    I did some digging and found this function:

    add_action( 'after_setup_theme', function() {
        add_theme_support( 'responsive-embeds' );
    } );

    Can you let me know if it makes a difference?

    Thanks!

    #752684
    Gwyneth

    Ok, that snippet worked and menu looks ok and archive page looks ok. Thanks.

    Other problem is that Audio does not appear on the post format dropdown selection here is dropbox link to screenshot.
    https://www.dropbox.com/s/3tgigbpaxi7yqpl/Screenshot%202018-12-10%2011.25.22.png?dl=0

    If I switch to 2016 theme Audio does appear

    Site now updated to WP 5.0

    #753008
    Tom
    Lead Developer
    Lead Developer

    Try this as your full function:

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

    Ive added that code snippet see code snipped added
    but still do not get Audio in Post Format dropdown
    Gwyneth

    #754255
    Tom
    Lead Developer
    Lead Developer

    Just made a small change: https://generatepress.com/forums/topic/audio-post-format/#post-753008

    Let me know if that does it not ๐Ÿ™‚

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