- This topic has 22 replies, 4 voices, and was last updated 4 years, 5 months ago by
Tom.
-
AuthorPosts
-
December 8, 2018 at 9:31 am #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 listDecember 8, 2018 at 5:34 pm #751724Leo
StaffCustomer SupportHi 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 ๐
December 9, 2018 at 7:45 am #752100Gwyneth
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 list2016:- 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
December 9, 2018 at 8:13 am #752110Gwyneth
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
December 9, 2018 at 9:45 am #752180Tom
Lead DeveloperLead DeveloperYou 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
December 9, 2018 at 9:55 am #752182Gwyneth
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
December 9, 2018 at 9:58 am #752184Gwyneth
HELP!!!
Went to hosting console and cleared cashe and now navigation main menu is completely screwed up! see https://efthelps.com/
December 9, 2018 at 10:00 am #752186Gwyneth
Ok I deactivated the code snippet but the menu is still completely screwed up
December 9, 2018 at 10:35 am #752212Leo
StaffCustomer SupportHmm menu looks fine to me:
https://www.screencast.com/t/AVMJXholFHAm I missing something?
The code Tom provided has nothing to do with menus.
December 9, 2018 at 11:12 am #752229Gwyneth
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.
December 9, 2018 at 6:10 pm #752395Tom
Lead DeveloperLead DeveloperI 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!
December 10, 2018 at 3:29 am #752684Gwyneth
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=0If I switch to 2016 theme Audio does appear
Site now updated to WP 5.0
December 10, 2018 at 9:03 am #753008Tom
Lead DeveloperLead DeveloperTry 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 );
December 11, 2018 at 1:23 pm #754124Gwyneth
Ive added that code snippet see
but still do not get Audio in Post Format dropdown
GwynethDecember 11, 2018 at 6:45 pm #754255Tom
Lead DeveloperLead DeveloperJust made a small change: https://generatepress.com/forums/topic/audio-post-format/#post-753008
Let me know if that does it not ๐
-
AuthorPosts
- You must be logged in to reply to this topic.