WordPress.org

Ready to get started?Download WordPress

Forums

Network Latest Posts
[resolved] using the plugin as a php include (2 posts)

  1. Aircut
    Member
    Posted 1 year ago #

    how do you use the plugin to generate a feed as part of a theme with a php include as opposed to a widget or a shortcode?

    http://wordpress.org/extend/plugins/network-latest-posts/

  2. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    Just verify the function exists, then set the parameters if you want (they're optional) and display it where you want:

    if( function_exists('network_latest_posts') ) {
    	$parameters = array(
                  'title'=>'Testing NLPosts as a Function'
            );
    	network_latest_posts($parameters);
    }

    You can find the list of parameters here: Other Notes

    Cheers.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.