// Add Shortcode function oneshot_shortcode( $atts ) { // Attributes $atts = shortcode_atts( array( 'bottle' => '', 'fruit' => '', 'link' => '', ), ); return '<a href="' . $link . '"><div class="bottle-container"><div class="lemon"><img src="' . $bottle . '" width="98"></div><div class="bottle"><img src="' . $fruit . '" width="200"></div></div> <!-- end of bottle-container --></a>'; } add_shortcode( 'oneshot', 'oneshot_shortcode' );