Sari la conținut
WordPress.org

În Română

  • Teme
  • Module
  • Știri
  • Suport
  • Despre
  • Evenimente
  • Localizare
  • Dialog
  • Obține WordPress
Obține WordPress
WordPress.org

Plugin Directory

Current Post Shortcode

  • Trimite un modul
  • Favoritele mele
  • Autentifică-te
  • Trimite un modul
  • Favoritele mele
  • Autentifică-te

Current Post Shortcode

De Md Forid Uddin
Descarcă
  • Detalii
  • Recenzii
  • Instalare
  • Dezvoltare
Suport

Descriere

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

Instalare

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”.

Întrebări frecvente

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.

Recenzii

Nu există nicio verificare pentru acest modul.

Contributori și dezvoltatori

„Current Post Shortcode” este un software open-source. La acest modul au contribuit următoarele persoane.

Contributori
  • Md Forid Uddin

Tradu „Current Post Shortcode” în limba ta.

Te interesează dezvoltarea?

Răsfoiește codul, vezi depozitarul SVN, sau abonează-te la jurnalul de dezvoltare prin RSS.

Istoric modificări

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.

Meta

  • Versiunea 3.1.0
  • Ultima actualizare Acum 3 luni
  • Instalări active: 30+
  • Versiune WordPress 6.7 sau mai recentă
  • Testat până la 6.9.4
  • Versiune PHP 7.4 sau mai recentă
  • Limbă
    English (US)
  • Etichete
    custom fieldpost metapost titleshortcode
  • Vizualizare avansată

Evaluări

Nu a fost trimisă nicio recenzie până acum.

Your review

Vezi toate recenziile

Contributori

  • Md Forid Uddin

Suport

Ai ceva de zis? Ai nevoie de ajutor?

Vezi forumul pentru suport

  • Despre
  • Știri
  • Găzduire
  • Confidențialitate
  • Prezentare
  • Teme
  • Module
  • Modele
  • Învață
  • Suport
  • Dezvoltatori
  • WordPress.tv ↗
  • Implică-te
  • Evenimente
  • Donează ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

În Română

  • Mergi la contul nostru X (fost Twitter)
  • Vizitează contul nostru Bluesky
  • Vizitează contul nostru Mastodon
  • Vizitează contul nostru Threads
  • Vizitează pagina noastră Facebook
  • Vizitează-ne pe Instagram
  • Vizitează-ne pe LinkedIn
  • Vizitează contul nostru TikTok
  • Vizitează canalul nostru YouTube
  • Vizitează contul nostru Tumblr
Codul este poezie.
The WordPress® trademark is the intellectual property of the WordPress Foundation.