Title: Multisite dynamic PHP content within email template
Last modified: August 30, 2016

---

# Multisite dynamic PHP content within email template

 *  Resolved [vcb](https://wordpress.org/support/users/vcb/)
 * (@vcb)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/multisite-dynamic-php-content-within-email-template/)
 * Dear Developer,
 * thanks for this great plugin.
 * Is there any solution available using a dynamic URL for multisite usage?
    In 
   detail I’d need to include site specific logo for each site.
 * Problem: Domain is hardcoded within WP Email Template.
    [http://example.com/wp-content/uploads/siteID/logo.png](http://example.com/wp-content/uploads/siteID/logo.png)
   <?php get_site_url(); ?> does not work within Email Template.
 * Any solution or workaround would be very handy.
    Thanks in advance.
 * [https://wordpress.org/plugins/wp-better-emails/](https://wordpress.org/plugins/wp-better-emails/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Nicolas Lemoine](https://wordpress.org/support/users/nlemoine/)
 * (@nlemoine)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/multisite-dynamic-php-content-within-email-template/#post-6474885)
 * Hi vcb,
 * Sure, you have two ways to achieve this.
 * Looking at the help tab, you’ll see some variables available as tags such as:
   –%
   blog_url% – %home_url% – %blog_name% – %blog_description% – %admin_email% – %
   date% – %time% I think %home_url% should suit your needs.
 * You can also add your own tag: [https://wordpress.org/plugins/wp-better-emails/faq/](https://wordpress.org/plugins/wp-better-emails/faq/)
 *     ```
       add_filter('wpbe_tags', 'add_my_tags');
       function add_my_tags( $tags ) {
           $tags['site_url'] = get_site_url();
           return $tags;
       }
       ```
   
 *  Thread Starter [vcb](https://wordpress.org/support/users/vcb/)
 * (@vcb)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/multisite-dynamic-php-content-within-email-template/#post-6475038)
 * Hello hellonico,
 * thanks for pointing this out.
    Somehow I’m not able to use the default tags you
   are mentioning. %blog_url% results within the email as src=”%blog_url%/wp-content/…”
 * Is there something I’m missing out?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Multisite dynamic PHP content within email template’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-better-emails_f6f6f6.svg)
 * [WP Better Emails](https://wordpress.org/plugins/wp-better-emails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-better-emails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-better-emails/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-better-emails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-better-emails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-better-emails/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [vcb](https://wordpress.org/support/users/vcb/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/multisite-dynamic-php-content-within-email-template/#post-6475038)
 * Status: resolved