Created
June 7, 2013 19:31
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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