Placeholder services for everyone!

Here comes my list of the best online placeholder services. Thanks to @kosmar and @paulchrablass!

1. Highly customizable: cambelt

http://cambelt.co/

cambelt

<img src="ttp://cambelt.co/200x150/Cambelt?color=234653,eeeeee&font_size=24">

Options: format, text, color, size, font-size, text-color, font-family, https, icons

2. Fit and proper by categories: lorempixel

http://lorempixel.com/

lorempixel

<img src="http://lorempixel.com/200/150/city/2/lorempixel" width="200" height="150">

Options: color/greystyle, size, category, image number, text

3. Fit and proper by tags: flickholdr

http://www.flickholdr.com/

flickholdr

 <img src="http:://www.flickholdr.com/200/150/berlin/4">

Options: size, tag, image number

4. The quick and simple way: placehold.it

http://placehold.it/

placehold.it

<img src="http://placehold.it/200x150.png/cccccc/333333&text=placehold.it">

Options: format, text, color, size

5. For dog lovers at random: placedog

http://placedog.com/

placedog.com

<img src="http://placedog.com/200/150" >

Options: color/greystyle, size

6. For cat lovers: placekitten

http://placekitten.com/

placekitten.com

<img src="http://placekitten.com/200/150" >

Options: color/greystyle, size

7. For cute puppy lovers: placepupy

http://placepuppy.it/

placepuppy.it

<img src="http://placepuppy.it/200/150&n=2" >

Options: size, image number, text, text-bg-color, text-color

To be continued!

WordPress Multisite footer navigation

On a new project I wanted to have an footer navigation across a range of WordPress Multisite blogs. This is my solution:

<?php $current_blog = get_current_blog_id(); ?>
<?php switch_to_blog(1); ?>
<ul>
<?php wp_list_pages( 'show_home=1&title_li=<h3>'.get_bloginfo('name').'</h3>&depth=1' ); ?>
</ul>

<?php switch_to_blog(2); ?>
<ul>
<?php wp_list_pages( 'show_home=1&title_li=<h3>'.get_bloginfo('name').'</h3>&depth=1' ); ?>
</ul>

...

<?php switch_to_blog($current_blog); ?>

If you use switch_to_blog just once you don’t need the $current_blog and you can switch back easy using restore_current_blog().

WordPress Function Reference / switch to blog

The project URL is coming soon.

Update

It’s not necessary to use the $current_blog variable. After the switches you can return to the current blog by using the restore_current_blog() function.