Get Post
Get Post adds a tag that allows you to retrieve and display the latest post identified by a specific set of parameters.
The facts
- Active installs
- 100+
- Price
- Free
- Last updated
- 6 Jun 2011
- Added
- Nov 2008
- Requires WP
- 3.0
- Tested up to
- WP 3.1.4
- Downloads
- 14,859
Our analysis
AI-assistedGet Post is a WordPress plugin that allows you to retrieve and display the latest post based on specified parameters. You can use the [get-post] shortcode in any post or page to show posts tagged or categorised in a certain way, or even random posts. The plugin supports various parameters to control the output, such as specifying tags, categories, and the number of posts to display.
This plugin is suitable for users who want to dynamically display content on their WordPress site based on specific criteria. It can be particularly useful for those managing blogs or content-heavy sites that require frequent updates of displayed posts.
Best for: This plugin suits bloggers or content managers looking to showcase specific posts dynamically.
What it does well
- ✓Allows retrieval of latest posts by tag or category
- ✓Supports multiple parameters for customisation
- ✓Can display random posts based on criteria
- ✓Includes a default template that fits most themes
- ✓Free to use from the WordPress.org directory
Where it falls short
- •Last updated in June 2011, may not be compatible with newer WordPress versions
- •Directory score indicates potential issues or limitations
- •No published rating available
Verdict
Get Post provides a straightforward way to display posts based on tags or categories, but its age may affect compatibility with current WordPress installations.
From the developer
jtatum's own description of Get Post, lightly tidied.
Get Post adds a tag that allows you to retrieve and display the latest post
identified by a specific set of parameters.
When this plugin is active, any post or page can contain the get-post markup
as follows:
[get-post tag=some-tag]
This will be replaced with the latest post tagged with the given tag.
Parameters
The parameters control which posts are retrieved by get-post. Options can be
used in combination to build a list of criteria for post or posts to retrieve.
By mixing criteria, you can exert a lot of control over the post(s) which are
found by the plugin.
[get-post tag=some-tag random show=3]
One note on WordPress in general: if you specify criteria that WordPress can’t
match, it will make something up. For instance, if you specify a tag or
category that doesn’t exist, it will simply retrieve the latest post with no
indication that anything is wrong. Take care to ensure that the options you
specify are what you intend.
Several of these parameters work best when specifying the slugs. For instance,
when specifying a tag it’s best to use the slug value rather than the full
name of the tag. To find the slug, see the admin panel -> posts -> post tags.
The slug is listed right on that page.
You may wish to specify an option value with a space in it. This is
accomplished with quotes:
[get-post option="a value with spaces"]
-
tag:
Specify a tag to search for. The tag’s slug should be specified.[get-post tag=some-tag] -
category:
Specify a category to search for. The category’s slug should be specified.[get-post category=some-category] -
show:
Specify the number of posts to show.[get-post show=5] -
template:
Specify the template to use. This specification overrides the template set in
the options panel of the admin interface. See the template section for more
details on template tags. NOTE: If entering any HTML into this, please be
sure to select the HTML editor rather than the visual editor.[get-post template="<h1>Title: {title}</h1>"] -
random:
Select a random post from the matching criteria[get-post random] -
default:
This isn’t really an option. By default, get-post displays the latest blog
post.[get-post]
Templates
Get-post ships with a default template that should render the usual post
details in a form that fits well with most themes. You can customize this
template to add or remove data from the included post. Additionally, you can
use the template parameter to the [get-post] tag to specify a one-off
template.
Using the show parameter will retrieve multiple posts. In this case, the
template will be repeated one time for each retrieved post.
These tags are replaced with the value from the retrieved post. For instance,
a template containing {title} will actually have the title of the retrieved
post, rather than the word title.