How to Sort the My Sites Listing on Both the Page and in the Admin Bar Dropdown

Example code from Stack Exchange on how to sort the My Sites listing on both the page and in the admin bar dropdown:

function dccf_sort_my_sites($blogs) {
	$f = create_function('$a,$b','return strcasecmp($a->blogname,$b->blogname);');
	uasort($blogs, $f);
	return $blogs;
}
add_filter('get_blogs_of_user', 'dccf_sort_my_sites');

How to Sort the My Sites Listing on Both the Page and in the Admin Bar Dropdown Read More »

How to Add an Admin Bar Menu Link

add-wordpress-admin-bar-menu-link

Here is an example code how to add Editorial Calendar plugin admin bar menu link:

function add_editorial_calendar_admin_bar_link() {
	global $wp_admin_bar;
	if (!is_super_admin() || !is_admin_bar_showing())
		return;
	$wp_admin_bar->add_menu(array(
		'id' => 'editorial_calendar_link',
		'title' => __('Editorial Calendar'),
		'href' => __('http://' . strtolower($_SERVER['HTTP_HOST']) . '/wp-admin/edit.php?page=cal'),
	) );
}
add_action('admin_bar_menu', 'add_editorial_calendar_admin_bar_link', 75);

How to Add an Admin Bar Menu Link Read More »

Survey: WordPress Continue to Dominate Open Source CMS Market

According to water&stone, WordPress, Drupal, and Joomla continue to dominate open source market in 2011 with WordPress clearly leading.

Survey looked at downloads, installations and third-party support.

Downloads a week

  1. WordPress: 640,000
  2. Joomla: 86,000
  3. Drupal: 23,000

Download numbers are really not that accurate, because there are checkouts from repositories and web hosts' one click installs.

Alexa One Million

  1. WordPress: 53.6%
  2. Joomla: 9.6%
  3. Drupal: 6.4%

BuiltWith Installs

  1. WordPress: 4.2 million
  2. Joomla: 1.7 million
  3. Drupal: 308,000

Books in Print

  1. WordPress: 83 books, 23 released in 2011
  2. Drupal: 64 books, 22 released in 2011
  3. Joomla: 65 books, 13 released in 2011

It's interesting that Drupal books new releases are so close to WordPress. Maybe that tells about active developer community?

Survey: WordPress Continue to Dominate Open Source CMS Market Read More »

Scroll to Top