function the_ttftext_shortcode( $atts ) { extract( shortcode_atts( array( ‘text’ => ”, ‘echo’ => false, ‘style’ => ”, ‘overrides’ => ”, ), $atts ) ); return the_ttftext (esc_attr($text), false, esc_attr($style), esc_attr($overrides)); } add_shortcode(’ttf_text’, ‘the_ttftext_shortcode’); [ttf_text text=”Hello World!” style=”basic”]
Category: Plugins
Get the image plugin
Usage: <?php get_the_image( array( ‘default_image’ => ‘http://mysite.com/wp-content/uploads/example.jpg’ ) ); ?> Parameters: $defaults = array( ‘meta_key’ => array( ‘Thumbnail’, ‘thumbnail’ ), ‘post_id’ => $post->ID, ‘attachment’ => true, ‘the_post_thumbnail’ => true, ‘size’ => ‘thumbnail’, ‘default_image’ => false, ‘order_of_image’ => 1, ‘link_to_post’ => true, ‘image_class’ => false, ‘image_scan’ => false, ‘width’ => false, ‘height’ => false, ‘format’ =>… Continue reading Get the image plugin