+ Babaman Publicado 23 de Noviembre del 2019 Reportar Compartir Publicado 23 de Noviembre del 2019 Hello, on the telegram group they don't answer me, I try to write a post here. I need to know how to use theme shortcodes. Reference: /inc/doo_init.php # Imdb video Shortcode if(!function_exists('doo_imdb_embed')){ function doo_imdb_embed($atts, $content = null) { extract(shortcode_atts(array('id' => 'idimdb'), $atts)); return '<div class="video"><if'.'rame width="640" height="360" src="http://www.imdb.com/video/imdb/'.$id.'/imdb/embed?autoplay=false&width=640" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" frameborder="no" scrolling="no"></if'.'rame></div>'; } add_shortcode('imdb','doo_imdb_embed'); } example link video trailer imdb.com https://www.imdb.com/videoplayer/vi2143993625?playlistId=tt4520988 example shortcodes: [doo_imdb_embed vi2143993625] it's correct? or I have to pass the ID of the rel tt4520988 Enlace al comentario Compartir en otros sitios web More sharing options...
Publicaciones recomendadas
Por favor conéctate para comentar
Podrás dejar un comentario después de iniciar sesión
Conectar ahora