Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wippy

    (@wippy)

    Hi, frizax.

    You are fast. 😀

    Well, your code just needs $post_id inside, I don’t know why, but without it inside, image will always show full size.

    Thread Starter wippy

    (@wippy)

    Hi, David Laietta.
    Your function behave the same way like mine. Thank you, anyway.

    Hi, alchymyth.
    Your solution worked. Thank you.

    Function:

    function post_thumbnail( $atts, $content = null ) {
    	return '<div id="post_thumbnail">' . get_the_post_thumbnail($post_id, 'thumbnail') . '</div>';
    }
    
    add_shortcode("post_thumbnail", "post_thumbnail");

Viewing 2 replies - 1 through 2 (of 2 total)