Support » Plugins and Hacks » WordPress MU Domain Mapping » how to find the mapped image URL in theme code?

how to find the mapped image URL in theme code?

  • Hello.

    I use the standard wordpress function wp_get_attachment_image() in my template code, and unfortunately the resulting image src is not mapped per mu-domain-mapping settings.

    Is there any way I can get the mapped image url from this plugin?

    as a (temporary) example (may be shutdown anytime):
    mapped blog post: http://tools.resilientweb.eu/101/wasbar/
    – the image in post body is standard worpdress media and is mapped well.
    – at the bottom of the post there is a custom post-meta area where custom images are shown for tags, categories and custom taxonomies terms… these images are not mapped but still refer to the network url (blogs2.privatedomain) that is not available on the web.

    these custom images are generated via standard WP function call
    wp_get_attachment_image( $term->image_id, ‘detail’ )

    how can I get these images domain-mapped in my theme?



  • The topic ‘how to find the mapped image URL in theme code?’ is closed to new replies.
Skip to toolbar