plugin-icon

Current Post Shortcode

제작자: Md Forid Uddin·
The Current Post Shortcode plugin allows you to display the current post's title and metadata using simple shortcodes.
버전
3.1.0
활성화된 설치 항목
40
최근 업데이트일
Jan 13, 2026
Current Post Shortcode

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
무료유료 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 6.9.4
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.