cat_gen
asdasd
// Add Shortcode function cat_gen( $atts ) { // Attributes extract( shortcode_atts( array( 'img' => 'link', 'title' => 'title', 'description' => 'desc', ), $atts ) ); // Code return '<div class="ImageWrapper ContentWrapperMg chrome-fix"><a href="/anh-hung-ti-hon"><img class="img-responsive" src="' . $img . '" alt="" /></a> <div class="ContentMg"> <div class="Content"> <h2><a href="/anh-hung-ti-hon">' . $title . '</a></h2> <p><a href="/anh-hung-ti-hon">' . $description . '</a></p> </div> </div> </div>'; } add_shortcode( 'Category_code', 'cat_gen' );