WP SC – Ft Img from ID
// Add Shortcode function wp_ft_img( $atts ) { // Attributes $atts = shortcode_atts( array( 'postid' => '', ), $atts ); return get_the_post_thumbnail($post->ID); } add_shortcode( 'wp-ft-img', 'wp_ft_img' );
// Add Shortcode function wp_ft_img( $atts ) { // Attributes $atts = shortcode_atts( array( 'postid' => '', ), $atts ); return get_the_post_thumbnail($post->ID); } add_shortcode( 'wp-ft-img', 'wp_ft_img' );