Displaying all of a list instead of by userid
-
Hello, i have written a short script to display a list of wpmu blogs that are owned by a user. However i wanted to tweak it to show a list of ALL wpmu blogs on the network similiar to how network -> sites works
here is my current script
<?php $blogs = get_blogs_of_user( $current_user->ID ); if ( !empty( $blogs ) ) { foreach ( $blogs as $blog ) { $home_url = get_home_url( $blog->userblog_id ); } echo '<a href="' . esc_url( $home_url ) . '/wp-admin/profile.php">Edit Your Profile Information</a>'; ?> </div> <div class="clear"></div> <h4>Your Clan URL Is: <? echo '<a href="' . esc_url( $home_url ) . '">' . esc_url( $home_url ) . '</a>'; ?></h4>
does anyone have any tips or can someone point me in the right direction for tuning this?
much appreciated
- The topic ‘Displaying all of a list instead of by userid’ is closed to new replies.