The wp_connect_facepile function renders a Facebook Facepile based on the specified setting values. It can be used by theme designers who would like to add specific facepile(s) to their theme.


<?php wp_connect_facepile$url$width$max_rows$echo ); ?>


(string) (required). If you want the Facepile to display friends who have liked your page, specify the URL of the page here.
Default: None. Pass an empty string for the current page.
(integer) (required) The width of the plugin in pixels.
Default: None
(integer) (required) The maximum number of rows of faces to display. The plugin will dynamically size its height; if you specify a maximum of four rows of faces, but there are only enough friends to fill two rows, the plugin will set its height for two rows of faces.
Default: None
(boolean) (optional) Whether to print the plugin code (TRUE) or return it as a PHP variable (FALSE).
Default: TRUE


Default Usage

Prints the Facepile plugin.

if ( function_exists( 'wp_connect_facepile' ) ){

	$url = 'http://www.mysite.com/my-post';
	$width = 480;
	$max_rows = 2;

	// render the facepile plugin in place

Change Log

Source File

wp_connect_facepile() is located in wordpress-connect/wordpress-connect-functions.php.


wp_connect_activity_feed, wp_connect_comments, wp_connect_comments_default, wp_connect_like_box, wp_connect_like_button, wp_connect_like_button_default, wp_connect_live_stream, wp_connect_login_button, wp_connect_recommendations, wp_connect_send_button