Sidebar widget and template function to display an ordered blog list of subsites (with post count) on a page of the WordPress MU main site.
http://www.yann.com/en/wp-plugins/yd-wpmu-bloglist-widget
Use comments.
I will answer only on that page so that all users can benefit from the answer. So please come back to see the answer or subscribe to that page's post comments.
Oui, l'auteur est français. ("but alors... you are French?")
Insert this code into your template:
<?php yd_display_wpmu_bloglist() ?>
Since version 2.1.0, you can use this syntax:
<?php yd_wpmubl_dropdown_js(); ?>
<select name="select" id="select" onChange="ddjump(this);">
<option selected="selected"><?php _e('Please choose an option below:'); ?></option>
<?php yd_wpmu_bloglist_dropdown( 'show_count=0' ); ?>
</select>
Same answer as above.
All the display parameters can be overloaded in the function call. Here are the available parameters:
**new since 2.0.0 **
**new since 2.1.0 **
For example, here's how to call the function with a bunch of parameters:
<?php yd_display_wpmu_bloglist( 'column_count=1&before_item=<li><b>&after_item=</b></li>' ) ?>
Since version 2.1.0 you can also pass artguments in an array, like this for example:
<?php yd_display_wpmu_bloglist(
true, //echo
array(
'to_skip' => '1,0',
'order_by' => 'domain',
'group_by' => 'continent',
'column_count' => 3,
'show_count' => 0,
'before_block' => '<div>',
'after_block' => '</div>',
'before_column' => '<div class="columns coln">',
'after_column' => '</div>'
)
); ?>
Yes: just add a first parameter "false". You can add optionnal display customization overload parameters after that.
For example:
<?php $my_html = yd_display_wpmu_bloglist( false, 'column_count=1&before_item=<li><b>&after_item=</b></li>' ) ?>
Yes you can include the list in the content of any page or post by using tis special tag:
[!YDWPMUBL]
Requires: 2.9.1 or higher
Compatible up to: 3.2.1
Last Updated: 2011-10-12
Downloads: 6,319
Got something to say? Need help?