WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Error in codex "wp_get_attachment_thumb_url()" (1 post)

  1. maximaxter
    Member
    Posted 3 years ago #

    Hey there, i'm see this error in the function reference here:
    http://codex.wordpress.org/Function_Reference/wp_get_attachment_thumb_url

    the "Usage" description is wrong:
    wp_get_attachment_thumb_url( $post_id );
    This return false.

    The correct reference should be (or something like this):
    wp_get_attachment_thumb_url( get_post_thumbnail_id( get_the_ID() ) );

    In the wrong reference, see the var $post_id (this is wrong), this funciton need the attachment id.

    Sorry for my bad english.

    Regards.
    Maxi

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags