• That’s a really great plugin! Two quick feature request:

    1.) Please add a shortcode
    2.) Please make it possible to add a way of controlling the align (or adding a custom class)

    Example Shortcode:
    [youtube id=”123456789″ align=”alignright”]

    Example Source:

    <?  /** YouTube shortcode */
        function shortcode_youtube($atts) {
            extract(shortcode_atts(array(
                "id" 	=> '',
    	    "align" => 'aligncenter'
            ), $atts));
            return '<div class="'.$align.'">' . lyte_parse('httpv://www.youtube.com/watch?v='.$id) . '</div>';
        }
        add_shortcode("youtube", "shortcode_youtube");
    ?>

    Thanks!

    https://www.ads-software.com/extend/plugins/wp-youtube-lyte/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Frank Goossens

    (@futtta)

    it’s hard to say “no” if someone even provides (example) code to include. i’ll have a look and probably add this feature to the upcoming 1.1.5, thanks for the active participation ben4d85!

    Plugin Author Frank Goossens

    (@futtta)

    your shortcode is in the freshly baked 1.1.5, the align property isn’t yet (you can set alingment in the configuration-page, but I guess you knew that already).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP YouTube Lyte] Shortcode Align’ is closed to new replies.