Skip to content

Instantly share code, notes, and snippets.

@josesayago
Created June 7, 2013 19:31
Show Gist options
  • Save josesayago/5731777 to your computer and use it in GitHub Desktop.
Save josesayago/5731777 to your computer and use it in GitHub Desktop.
This is an example of embedding Network Latest Posts into a WordPress Template file
<?php
// Check if the plugin has been activated
if( function_exists( 'network_latest_posts' ) ) {
/**
* Custom Parameters
* Set only those you want to use
*/
$parameters = array(
'title' => 'Recent Articles'
'title_only' => 'false',
'auto_excerpt' => 'true',
'random' => 'true'
);
// Execute
network_latest_posts( $parameters );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment