Vai al contenuto
WordPress.org

Italia

  • Temi
  • Plugin
  • Notizie
  • Supporto
    • Documentazione
    • Forum
  • Info
  • Community
    • Manifesto
    • Unisciti alla Community
    • Team
    • Manuali
    • Traduci
    • Meetup italiani
    • WordCamp
    • Five for the Future
    • Proposte di lavoro
    • Swag Store
  • Risorse
    • Directory delle foto
    • Learn WordPress
    • Openverse
    • Pattern
    • Playground
    • Prova l’editor Gutenberg
    • WordPress.tv
  • Eventi
  • Scarica WordPress
Scarica WordPress
WordPress.org

Plugin Directory

Current Post Shortcode

  • Invia un plugin
  • I miei preferiti
  • Accedi
  • Invia un plugin
  • I miei preferiti
  • Accedi

Current Post Shortcode

Di Md Forid Uddin
Scarica
  • Dettagli
  • Recensioni
  • Installazione
  • Sviluppo
Supporto

Descrizione

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

Installazione

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

FAQ

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.

Recensioni

Non ci sono recensioni per questo plugin.

Contributi e sviluppo

“Current Post Shortcode” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori
  • Md Forid Uddin

Traduci “Current Post Shortcode” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il codice segui il repository SVN, segui il log delle modifiche tramite RSS.

Changelog

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

  • Versione 3.1.0
  • Ultimo aggiornamento 1 mese fa
  • Installazioni attive 30+
  • Versione WordPress 6.7 o superiore
  • Testato fino alla versione 6.9.1
  • Versione PHP 7.4 o superiore
  • Lingua
    English (US)
  • Tag
    custom fieldpost metapost titleshortcode
  • Visualizzazione avanzata

Valutazioni

Non sono state ancora inviate recensioni.

Lascia la tua valutazione

Vedi tutte le recensioni

Collaboratori

  • Md Forid Uddin

Supporto

Hai qualcosa da dire? Ti serve aiuto?

Chiedi nel forum di supporto

  • Chi siamo
  • News
  • Hosting
  • Privacy
  • Vetrina
  • Temi
  • Plugin
  • Pattern
  • Learn (Training)
  • Supporto
  • Sviluppo
  • WordPress.tv ↗
  • Partecipa
  • Eventi
  • Donazioni ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Italia

  • Visita il nostro account X (ex Twitter)
  • Visita il nostro account Bluesky
  • Visita il nostro account Mastodon
  • Visita il nostro account Threads
  • Visita la nostra pagina Facebook
  • Visita il nostro account Instagram
  • Visita il nostro account LinkedIn
  • Visita il nostro account TikTok
  • Visita il nostro canale YouTube
  • Visita il nostro account Tumblr
Code is Poetry.