Adds shortcodes to display the content of a post or a list of posts.
This plugin adds two shortcodes that allow you to display either the content of a post or a list of posts within the content area of a post. This plugin should be fully compatible with all post types, as it simply uses the get_post() and get_posts() WordPress functions.
Post Content
The first shortcode is the [post-content] shortcode. Using that shortcode will allow you to display the content of one post within another post. This shortcode requires a single attribute with a key of "id". To use this shortcode to display the content of a post or page with an ID of 25, you would use this shortcode like [post-content id=25].
Post List
The second shortcode is the [post-list] shortcode. This shortcode does not require any arguments, but will accept the following arguments (most of which are the default arguments used with get_posts()):
The last argument shown is not a standard argument for the get_posts() function. It is a custom argument for this plugin. When that argument is set to true, the current page or post will be excluded from the list of posts. If it is set to false, "false" or 0, the current page or post will be included in the post list.
To read more about the other arguments, please visit the codex page for the get_posts() function.
If you are looking to display a list of attachments in a post, rather than displaying a list of posts or pages, you might want to check out the List Attachments Shortcode plugin instead.
Requires: 3.0 or higher
Compatible up to: 3.2.1
Last Updated: 2011-9-12
Downloads: 1,743
0 of 1 support threads in the last three weeks have been resolved.
Got something to say? Need help?