WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
how to find the mapped image URL in theme code? (1 post)

  1. berteh
    Member
    Posted 1 year ago #

    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?

    Thanks!
    B.

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic