• Resolved duncmorley

    (@duncmorley)


    Is it possible to echo a custom size attachment URL. I know WordPress has the following function built in:
    wp_get_attachment_url( $attachment_id );
    But you cannot add a size parameter to this function so it only ever outputs the full size image URL.

    I specifically need the URL only as I’m wanting to pass the URL into an inline CSS style.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Echo attachement URL with custom size’ is closed to new replies.