Wordpress plugin returning site name

albin

New Member
http://codex.wordpress.org/WPMU_Functions/get_current_site#ExamplesIn Wordpress, I am trying to retrieve the site name inside a plugin using the above function:\[code\]echo 'You are viewing '.get_current_site()->site_name;echo '<br/>Domain '.get_current_site()->domain;echo '<br/>id '.get_current_site()->id ;echo '<br/>path '.get_current_site()->path;\[/code\]Unfortunately this is returning info from the top level site, not whichever subsite the plugin is on, which I want.
 
Back
Top