Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    As a short term work around have you tried using wp_get_attachment_url ? (or one of the other media URL functions? You should be able to specify the thumbnail size with any of the media URL functions.

    Thread Starter Vijay Kc

    (@vijay-kc)

    Thanks for reply Ron!
    I looked on https://codex.www.ads-software.com/Function_Reference/wp_get_attachment_url

    wp_get_atachment_url function don’t have feature to define thumbnail size.

    So WPMU Domain Mapping Plugin can’t replace the url for wp_get_attachment_image function? is it correct?

    Plugin Author Ron Rennick

    (@wpmuguru)

    So WPMU Domain Mapping Plugin can’t replace the url for wp_get_attachment_image function? is it correct?

    Whether or not it can be filtered, we won’t be fixing it immediately.

    Thread Starter Vijay Kc

    (@vijay-kc)

    Thanks for reply again.

    I stumbled onto this exact problem and added the following lines to the domain-mapping.php file in the neighbourhood of line 667:

    add_filter('wp_get_attachment_url','domain_mapping_themes_uri');
    add_filter('upload_dir', 'domain_mapping_themes_uri');

    This fixes the problems i had with the images and fetches them of the correct domain ??

    Plugin Author Ron Rennick

    (@wpmuguru)

    Thanks ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Domaing mapping not mapped url for thumbnail getted from wp_get_attachment_image’ is closed to new replies.