• Hi,

    Does anyone knows how to get url and not post_id of the selected/cropped image.

    I’m looking to change an image setting in my theme_option but all I get for the setting is the post_id of the cropped image, useless for real time customization.

Viewing 1 replies (of 1 total)
  • Orlando

    (@orlandomario)

    This worked for me. Place it wherever you would typically place the regular get_theme_mod() function.

    echo wp_get_attachment_url(get_theme_mod('custom_setting'));

Viewing 1 replies (of 1 total)
  • The topic ‘Customizer API WP_Customize_Cropped_Image_Control’ is closed to new replies.