Get Post
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=" Title: {title} "] 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. {title}: The title of the post. {content}: The content of the post. {author}: The author of the post. {date}: The date the post was written. {time}: The time the post was written. {permalink}: A link to the post itself. {authorlink}: A link to all posts by the post’s author. {id}: The post’s ID number. Examples Indicate when your blog was last updated: Blog last updated [get-post template="{date} at {time}."] Link to the latest post: Check out my post: [get-post template=" {title} "] How it works This plugin does something a little bit unorthodox: It reenters “The Loop” while the post content is being rendered. Then, it calls whatever WordPress internal functions will safely work, using raw data from $post when these functions are unsafe to call again. People curious about the internals should examine class-get-post-getter.php. The class is structured to be reusable by any other GPL2 projects.
Top keywords
- post27×4.31%
- get-post16×2.55%
- template14×2.23%
- tag12×1.91%
- specify9×1.44%
- title8×1.28%
- posts6×0.96%
- category5×0.80%
- latest5×0.80%
- show5×0.80%
- slug5×0.80%
- criteria4×0.64%
Post Duplicator
Save Time. Work Smarter. Duplicate Any Post Type with Ease. Post Duplicator is the ultimate WordPress plugin for quickly creating exact duplicates of any post type in your WordPress site. Whether you’re working with standard posts, pages, or custom post types, this plugin makes it effortless to clone content while preserving all taxonomies, custom fields, and metadata. Key Features: Universal Post Type Support – Works with every post type WordPress supports, including custom post types from your favorite plugins and themes Complete Data Preservation – Automatically copies all taxonomies, custom fields, metadata, and featured images Bulk Duplication – Select and duplicate multiple posts at once with individual settings per post Multiple Clones – Create multiple copies of a single post simultaneously (up to 50 clones) Flexible Duplication Options – Customize title, slug, status, author, date, post type, and parent for each duplicate Featured Image Management – Set, replace, or remove featured images directly in the duplication modal Smart Defaults – Configure default settings that apply to all duplications (draft status, current user as author) Post Types Configuration – Control which post types can be duplicated and which appear in the “Post Type” dropdown menu Permission Control – Granular control over who can duplicate posts with role-based permissions Modern Interface – Beautiful modal interface with live editing and expandable settings Cross-Post Type Duplication – Convert posts to different post types during duplication Hierarchical Post Support – Set parent posts for pages and hierarchical custom post types One-Click Operation – Duplicate posts from the posts list, edit screen, or block editor toolbar Perfect For: Developers – Quickly generate test content and dummy data for development using bulk or multiple clone features Content Managers – Create content templates and variations efficiently with one-click duplication Bloggers – Repurpose successful posts with different angles or formats using multiple clones E-commerce – Duplicate product variations and bulk duplicate similar listings across categories Content Marketers – Create A/B testing variations with the multiple clones feature Site Migrations – Bulk duplicate posts when restructuring or migrating content Multilingual Sites – Works seamlessly with WPML and Polylang for multilingual content What Gets Duplicated: Post content and formatting Title and slug (with customizable suffixes or full editing) All custom fields and metadata Categories, tags, and custom taxonomies Featured images (with ability to change or remove) Post format and excerpt Comment and ping status Menu order Post parent (for hierarchical post types) What Doesn’t Get Duplicated: Comments (by design – prevents duplicate comment threads) Post ID and GUID (new unique identifiers assigned) How to Use: Single Duplication: Hover over any post and click “Duplicate [Post Type]” in the row actions, or click the “Duplicate Post” button in the Gutenberg editor Multiple Clones: In the duplication modal, click the copy icon to create multiple copies of a single post (up to 50 clones) Bulk Duplication: Select multiple posts using checkboxes, choose “Duplicate” from the Bulk Actions dropdown, then configure each post individually Customize Settings: Edit title, slug, status, author, date, post type, featured image, and parent for each duplicate Configure Defaults: Go to Settings > Post Duplicator to set default status, author, date, and title/slug suffixes Configure Post Types: Go to Settings > Post Duplicator > Post Types to control which post types can be duplicated and which appear in the “Post Type” dropdown menu Default Settings: The plugin works immediately with sensible defaults: * Duplicated posts are created as Drafts (prevents accidental publishing) * Title suffix: “Copy” * Slug suffix: “copy” * Author: Current User * Date: Current Time All defaults can be customized in Settings > Post Duplicator. Integration: Post Duplicator works seamlessly with: * WPML and Polylang (multilingual support) * WooCommerce (excludes review counts automatically) * ACF (Advanced Custom Fields) – preserves all field data * WP Customer Area (special file duplication support) * All custom post types and taxonomies Security: Users without publish_posts capability cannot publish duplicates (forced to Pending) Non-authors cannot duplicate unpublished posts from other users Granular permission system controls who can duplicate posts All data is sanitized and validated before duplication Developer-Friendly: Includes hooks and filters for easy customization: * mtphr_post_duplicator_created action * mtphr_post_duplicator_meta_{$key}_enabled filter * mtphr_post_duplicator_meta_value filter