• When I’m giving a meta key to the video post type (_video_url for me), the plugin doesn’t use it in the AMP theme. I have to hardcode the meta key value in the single.php code :

    		if ( get_post_format() === 'video' ) {
    			$meta_key = better_amp_get_theme_mod( 'better-amp-featured-va-key' );
    
    			if ( empty( $media_key ) ) {
    				$meta_key = '_video_url';
    			}

    Your plugin is great, but I have to hardcode that every update… It would be nice to correct that bug. It’s just the better_amp_get_theme_mod( ‘better-amp-featured-va-key’ ); function doesn’t works and doesn’t return the right value ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter SuzuKube

    (@suzukube)

    Arf… It should be easy to fix. Where is defined the better_amp_get_theme_mod( ‘better-amp-featured-va-key’ ); ? I think it doesn’t take the value from the database ^^’ !

    Thread Starter SuzuKube

    (@suzukube)

    It’s in better-amp/includes/functions/theme-functions.php

    hum…. Perhaps the value is wrong…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t personnalise the Meta Key for Video Post Type’ is closed to new replies.