چھوڑیں مواد پر جائیں
WordPress.org

اردو

  • تھیمز
  • پلگ انز
  • خبریں
  • معاونت
  • متعلق
  • اردو مترجم ٹیم
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

Current Post Shortcode

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

Current Post Shortcode

منجانب Md Forid Uddin
ڈاؤن لوڈ کریں
  • تفصیلات
  • جائزے
  • انسٹالیشن
  • ڈیولپمنٹ
معاونت

تفصیل

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

انسٹالیشن

From your WordPress dashboard:

  • Go to Plugins > Add New.
  • Search for ‘Current Post Shortcode’.
  • Click "Install Now”, then "Activate Plugin”.

Or **install it manually**:

  • Download the plugin ZIP file from WordPress Directory.
  • Log in to your WordPress Dashboard, navigate to Plugins > Add New, and click the "Upload Plugin” button.
  • Choose the plugin ZIP file and click "Install Now”.
  • After installation, click "Activate Plugin”.

عمومی سوالات

How do I use the shortcodes?

  • Use [current_post] to display the title of the current post.
  • Use [current_post meta="custom_field"] to display a custom field value.
  • To display data from a specific post, use the id attribute.

Can I use this shortcode in widgets or other areas of the site?

Yes, you can use these shortcodes anywhere shortcodes are supported in WordPress, such as posts, pages, widgets, Gutenberg blocks, and page builders like Elementor, Divi, WPBakery, etc.

How do I handle empty or zero meta values?

You can use the skip attribute to skip empty or zero values and optionally display a default value.

Is there a fallback for meta values?

Yes, you can use the default attribute to provide a fallback value for empty meta values.

جائزے

There are no reviews for this plugin.

شراکت دار اور ڈیویلپرز

“Current Post Shortcode” اوپن سورس سافٹ ویئر ہے۔ مندرجہ ذیل لوگوں نے اس پلگ ان میں حصہ لیا:

شراکت دار
  • Md Forid Uddin

“Current Post Shortcode” کا اپنی زبان میں ترجمہ کریں۔

ڈویلپمینٹ میں دلچسپی ہے؟

کوڈ براؤز کریں، ایس این وی ریپوزیٹری کو چیک کریں یا ڈویلپمینٹ لاگ کو سبسکرائب کریں بذریعہ آر ایس ایس۔

چینج لاگ

3.1.0 – 14/01/2026

  • Added Shortcode functionality for displaying current post information.
  • Added support for displaying meta values with fallback options.

3.0.0 – 13/01/2026

  • Improved shortcode functionality to support additional attributes.
  • Enhanced compatibility with the latest WordPress versions.
  • Added fallback meta value for better user experience.

1.0.0 – 11/03/2025

  • Initial release of the plugin.

میٹا

  • Version 3.1.0
  • Last updated 2 مہینے پہلے
  • Active installations 30+
  • WordPress version 6.7 یا اس سے جدید
  • Tested up to 6.9.4
  • PHP version 7.4 یا اس سے جدید
  • Language
    English (US)
  • Tags
    custom fieldpost metapost titleshortcode
  • اعلی درجے کا منظر

درجہ بندیاں

No reviews have been submitted yet.

میرا جائزہ شامل کریں

See all reviews

شراکت دار

  • Md Forid Uddin

معاونت

کچھ کہنا ہے؟ مدد چاہیے؟

معاونتی فورم دیکھیں

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Support
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

اردو

  • Visit our X (formerly Twitter) account
  • ہمارے بلیواسکائی اکاؤنٹ پر جائیں
  • Visit our Mastodon account
  • ہمارے ٹھریڈز اکاؤنٹ پر جائیں
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • ہمارے ٹک ٹاک اکاؤنٹ پر جائیں
  • Visit our YouTube channel
  • ہمارے ٹمبلر اکاؤنٹ پر جائیں
کوڈ شاعری ہے۔
The WordPress® trademark is the intellectual property of the WordPress Foundation.