Скочи на садржај
WordPress.org

Српски

  • Теме
  • Додаци
  • Новости
    • Документација
    • Форуми
  • Информације
  • Упутства
  • Речник
  • @wp_sr
  • Организација
  • Преузми Вордпрес
Преузми Вордпрес
WordPress.org

Plugin Directory

Current Post Shortcode

  • Пошаљи додатак
  • Моји омиљени
  • Пријави се
  • Пошаљи додатак
  • Моји омиљени
  • Пријави се

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.

Рецензије

Нема рецензија за овај додатак.

Сарадници и градитељи

„Current Post Shortcode“ је софтвер отвореног кода. Следећи људи су допринели овом додатку.

Сарадници
  • Md Forid Uddin

Преведите „Current Post Shortcode“ на свој језик.

Заинтересовани сте за развој?

Прегледајте кôд, погледајте SVN складиште или се претплатите на дневник развоја преко RSS-а.

Записник измена

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.

Мета

  • Издање 3.1.0
  • Последње ажурирање пре 10 месеци
  • Активних постављања 50+
  • Издање Вордпреса 6.7 или новије
  • Испробано до 6.9.11
  • PHP издање 7.4 или новије
  • Језик
    English (US)
  • Ознаке
    custom fieldpost metapost titleshortcode
  • Напредни преглед

Оцене

Још нису послате рецензије.

Ваша рецензија

Види све рецензије

Сарадници

  • Md Forid Uddin

Подршка

Имате нешто да кажете? Потребна вам је помоћ?

Види форум подршке

  • О нама
  • Вести
  • Хостинг
  • Приватност
  • Витрина
  • Теме
  • Додаци
  • Обрасци
  • Учење
  • Подршка
  • Програмери
  • WordPress.tv ↗
  • Укључите се
  • Догађаји
  • Донирај ↗
  • Роба ↗
  • WordPress.com ↗
  • Мет ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

Српски

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • Посетите наш налог на X-у (раније Twitter)
  • Посетите наш Bluesky налог
  • Посетите наш Mastodon налог
  • Посетите наш налог на Threads-у
  • Посетите нашу Facebook страницу
  • Посетите наш Инстаграм налог
  • Посетите наш LinkedIn налог
  • Посетите наш TikTok налог
  • Посетите наш YouTube канал
  • Посетите наш Tumblr налог
Кôд је поезија.