Current Post Shortcode

plugin banner

The Current Post Shortcode plugin allows you to display the current post's title and metadata using simple shortcodes.

Author:Md Forid Uddin (profile at wordpress.org)
WordPress version required:6.7
WordPress version tested:6.9
Plugin version:3.1.0
Added to WordPress repository:12-03-2025
Last updated:13-01-2026
Rating, %:0
Rated by:0
Plugin URI:https://github.com/mdforiduddin/
Total downloads:593
Active installs:40+
plugin download
Click to start download

The “Current Post Shortcode” plugin allows you to display post titles and custom field values using simple shortcodes. You can display the current post’s title or meta information, or specify a post ID to retrieve data from a specific post.

Display Current Post Title and Meta Information:

  • Post Title: [current_post] Outputs the current post title, e.g., “Hello World”
  • Post Meta (Custom Field): [current_post meta="custom_field"] Outputs the value of the custom field

Display Data from a Specific Post ID:

  • Post Title: [current_post id="123"] Outputs the title of the post with ID “123”
  • Post Meta (Custom Field): [current_post id="123" meta="custom_field"] Outputs the value of the custom field in the post with ID “123”

Display Fallback Meta Value:

[current_post meta="custom_field" default="Default Value"]   Displays "Default Value" if the custom field is empty

Display Default Value for Zero Meta Value:

[current_post meta="custom_field" default="Default Value" skip="true"]   Displays "Default Value" if the custom field value is zero

FAQ
ChangeLog