WP Manifestindependent plugin directory
manifest / editor / wp-pdn-shortcode

PDN ShortCode

Plugins untuk Widget Shortcode di WordPress, Saya praktekan untuk keutuhan Instagram Galery

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/najzmi/wp-pdn-shortcode/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

PDN ShortCode adalah plugin WordPress sederhana yang menyediakan widget shortcode fleksibel.
Plugin ini memudahkan Anda menampilkan shortcode (contoh: Instagram Gallery) langsung dari Appearance → Widgets tanpa menulis kode.

Plugin ini dibuat dengan standar WordPress yang aman, ringan, dan menghindari error seperti: SyntaxError: JSON.parse: unexpected non-whitespace character


✨ Fitur

  • Widget shortcode yang bisa dikonfigurasi dari admin
  • Mendukung semua shortcode WordPress
  • Default shortcode: [insta-gallery id="0"]
  • Aman dari error JSON / REST / AJAX
  • Struktur HTML rapi & mudah di-style
  • Cocok untuk theme apa pun

📦 Instalasi

Cara Manual

  1. Download atau clone plugin ini
  2. Upload folder ke: wp-content/plugins/pdn-shortcode
  3. Masuk ke Dashboard WordPress
  4. Aktifkan plugin PDN ShortCode

⚙️ Cara Penggunaan

  1. Masuk ke: Appearance → Widgets
  2. Tambahkan widget PDN ShortCode
  3. Isi:
  • Judul Widget (opsional)
  • Shortcode, contoh:
    [insta-gallery id="0"]
  1. Simpan widget

Widget akan otomatis menampilkan shortcode di frontend.


🧩 Contoh Shortcode yang Bisa Digunakan

[insta-gallery id="0"]
[gallery ids="1,2,3"]
[contact-form-7 id="123"]

Struktur HTML Output

Widget menghasilkan struktur HTML seperti berikut:

Judul Widget

</div>

Styling (Opsional)

Tambahkan CSS berikut ke theme Anda:

.pdn-widget {
    margin-bottom: 30px;
}

.pdn-title-wrapper {
    margin-bottom: 10px;
}

.pdn-widget-divider {
    margin-top: 30px;
    opacity: 0.2;
}

Keamanan & Stabilitas

Plugin ini:

  1. Tidak menggunakan echo debug
  2. Tidak mengeluarkan output di luar widget
  3. Menggunakan sanitize_text_field, esc_html, dan wp_kses_post
  4. Tidak menutup tag ?> di akhir file
  5. Aman untuk REST API, Gutenberg, dan AJAX

Persyaratan

  1. WordPress 5.0 atau lebih baru
  2. PHP 7.4 atau lebih baru

Author

Pudin Saepudin

  1. Website: https://italazhar.com
  2. Instagram : https://instagram.com/pudin.ira

Lisensi

Plugin ini dirilis di bawah lisensi GPL v2 atau lebih baru.