Site logo

Archived topic

Audio Post Format

22 replies · Started by Gwyneth on December 8, 2018

Viewing posts 1–15 of 23

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

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 :)

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

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

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

HELP!!!

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

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

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.

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!

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 );

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

This archived topic is closed to new replies.