slposts-lite folder to the
- Activate the plugin through the 'Plugins' menu in WordPress
- If you want to use the Widget, you can add the Single Latest Posts widget under 'Appearance->Widgets'
- If you want to use the Shortcode, go to a page or post then click the SLPosts icon (red button in the TinyMCE editor) or use [slposts] (that's it, seriously!)
This is an just an example with the default values which means I could have used
[slposts] instead, but this will show you how the parameters
are passed. For more examples please visit the Network Latest Post website.
wrapper_list_css='nav nav-tabs nav-stacked'
- @title : Widget/Shortcode main title (section title)
- @number_posts : Number of posts BY blog to retrieve. Ex: 10 means, retrieve 10 posts for each blog found in the network
- @time_frame : Period of time to retrieve the posts from in days. Ex: 5 means, find all articles posted in the last 5 days
- @title_only : Display post titles only, if false then excerpts will be shown
- @display_type : How to display the articles, as an: unordered list (ulist), ordered list (olist) or block elements
- @thumbnail : If true then thumbnails will be shown, if active and not found then a placeholder will be used instead
- @thumbnail_wh : Thumbnails size, width and height in pixels, while using the shortcode or a function this parameter must be passed like: '80x80'
- @thumbnail_class : Thumbnail class, set a custom class (alignleft, alignright, center, etc)
- @thumbnail_filler : Placeholder to use if the post's thumbnail couldn't be found, options: placeholder, kittens, puppies (what?.. I can be funny sometimes)
- @category : Category you want to display. Ex: cats means, retrieve posts published under the category cats
- @tag : Same as categoy WordPress treats both taxonomies the same way
- @paginate : Display results by pages, if used then the parameter posts_per_page must be specified, otherwise pagination won't be displayed
- @posts_per_page : Set the number of posts to display by page (paginate must be activated)
- @excerpt_length : Set the excerpt's length in case you think it's too long for your needs Ex: 40 means, 40 words (55 by default)
- @auto_excerpt : If true then it will generate an excerpt from the post content, it's useful for those who forget to use the Excerpt field in the post edition page
- @excerpt_trail : Set the type of trail you want to append to the excerpts: text, image. The text will be more, the image is inside the plugin's img directory and it's called excerpt_trail.png
- @full_meta : Display the date and the author of the post, for the date/time each blog time format will be used
- @footer_meta : Display footer metadata
- @display_comments : Display comments count, full_meta must be active in order for this parameter to work (true to activate, false by default)
- @post_status : Specify the status of the posts you want to display: publish, new, pending, draft, auto-draft, future, private, inherit, trash
- @css_style : Use a custom CSS style instead of the one included by default, useful if you want to customize the front-end display: filename (without extension), this file must be located where your active theme CSS style is located, this parameter should be used only once by page (it will affect all shorcodes/widgets included in that page)
- @wrapper_list_css : Custom CSS classes for the list wrapper
- @wrapper_block_css : Custom CSS classes for the block wrapper
- @instance : This parameter is intended to differenciate each instance of the widget/shortcode/function you use, it's required in order for the asynchronous pagination links to work
- @suppress_filters : This parameter is specially useful when dealing with WP_Query custom filters, if you are using a plugin like Advanced Category Excluder then you must set this value to YES/TRUE