{"id":68356,"date":"2022-03-10T07:00:44","date_gmt":"2022-03-10T15:00:44","guid":{"rendered":"https:\/\/dhblog.dream.press\/blog\/?p=68356"},"modified":"2025-06-11T13:22:18","modified_gmt":"2025-06-11T20:22:18","slug":"un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it","status":"publish","type":"post","link":"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/","title":{"rendered":"Un&#8217;Introduzione agli Shortcodes di WordPress (Con Esempi)"},"content":{"rendered":"\n<p>I shortcode di WordPress possono migliorare facilmente il tuo sito web con elementi interattivi e coinvolgenti che possono essere ripetuti in post e pagine. Esempi includono <a href=\"https:\/\/www.dreamhost.com\/blog\/monetize-your-wordpress-image-gallery\/\" target=\"_blank\" rel=\"noopener noreferrer\">gallerie di immagini<\/a>, moduli di contatto e playlist per rendere i tuoi contenuti pi\u00f9 utili e coinvolgenti.<\/p>\n\n\n<p>In questo post, discuteremo i shortcode di WordPress e perch\u00e9 sono utili. Poi, delineeremo quattro metodi per iniziare ad utilizzare i shortcode sul tuo sito. Iniziamo!<\/p>\n\n\n<h2 id=\"h-wordpress-shortcodes-101\" class=\"wp-block-heading\"><b>WordPress Shortcodes 101<\/b><\/h2>\n\n\n<p>I shortcode di WordPress sono frammenti che permettono di incorporare rapidamente diversi file, oggetti o pezzi di contenuto nel tuo sito web. Sono singole linee di codice HTML che possono includere elementi interattivi del post.<\/p>\n\n\n<p>Un shortcode appare cos\u00ec, racchiuso tra due parentesi quadre:<\/p>\n\n\n<pre class=\"wp-block-preformatted\">[exampleshortcode]<\/pre>\n\n\n<p><a href=\"https:\/\/www.dreamhost.com\/blog\/history-of-wordpress\/?utm_campaign=coschedule&amp;utm_source=facebook_page&amp;utm_medium=DreamHost\" target=\"_blank\" rel=\"noopener noreferrer\">I shortcode sono stati introdotti nel 2008<\/a> per rendere la creazione di post e pagine pi\u00f9 complesse pi\u00f9 semplice. Offrono un modo semplice per inserire e caricare elementi di contenuto dinamico sul tuo sito.<\/p>\n\n\n<p>Ad esempio, potresti voler <a href=\"https:\/\/www.dreamhost.com\/wordpress\/guide-to-wp-front-page\/\" target=\"_blank\" rel=\"noopener noreferrer\">personalizzare la tua pagina iniziale di WordPress<\/a> incorporando una mappa di Google per mostrare la tua posizione commerciale. Potresti anche aggiungere un video introduttivo utilizzando un shortcode:<\/p>\n\n\n<pre class=\"wp-block-preformatted\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-33076 lazyload\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes-1.jpg\" alt=\"Codice breve video di WordPress\" width=\"900\" height=\"294\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes-1.jpg.webp 900w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes-1-300x98.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes-1-768x251.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes-1-600x196.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes-1-730x238.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes-1-784x256.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes-1-877x286.jpg.webp 877w\" data-sizes=\"(max-width: 900px) 100vw, 900px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 900px; --smush-placeholder-aspect-ratio: 900\/294;\" \/><\/pre>\n\n\n<p>I proprietari di siti web utilizzano tipicamente gli shortcode nel corpo di post, pagine e tipi di post personalizzati. Fortunatamente, con l&#8217;evolversi dell&#8217;editor di blocchi Gutenberg, l&#8217;uso degli shortcode \u00e8 diventato ancora pi\u00f9 semplice. Ne parleremo pi\u00f9 avanti nell&#8217;articolo.<\/p>\n\n\n<div class=\"article-newsletter article-newsletter--gradient\">\n\n\n<h2>Get Content Delivered Straight to Your Inbox<\/h2><p>Subscribe now to receive all the latest updates, delivered directly to your inbox.<\/p><form class=\"nwsl-form\" id=\"newsletter_block_\" novalidate><div class=\"messages\"><\/div><div class=\"form-group\"><label for=\"input_newsletter_block_\"><input type=\"email\"name=\"email\"id=\"input_newsletter_block_\"placeholder=\"Enter your email address\"novalidatedisabled=\"disabled\"\/><\/label><button type=\"submit\"class=\"btn btn--brand\"disabled=\"disabled\"><span>Sign Me Up!<\/span><svg width=\"21\" height=\"14\" viewBox=\"0 0 21 14\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n<path d=\"M13.8523 0.42524L12.9323 1.34521C12.7095 1.56801 12.7132 1.9304 12.9404 2.14865L16.7241 5.7823H0.5625C0.251859 5.7823 0 6.03416 0 6.3448V7.6573C0 7.96794 0.251859 8.2198 0.5625 8.2198H16.7241L12.9405 11.8535C12.7132 12.0717 12.7095 12.4341 12.9323 12.6569L13.8523 13.5769C14.072 13.7965 14.4281 13.7965 14.6478 13.5769L20.8259 7.39879C21.0456 7.17913 21.0456 6.82298 20.8259 6.60327L14.6477 0.42524C14.4281 0.205584 14.0719 0.205584 13.8523 0.42524Z\" fill=\"white\"\/>\n<\/svg>\n<\/button><\/div><\/form><\/div>\n\n<h2 id=\"h-why-you-might-consider-using-wordpress-shortcodes\" class=\"wp-block-heading\"><b>Perch\u00e9 Potresti Considerare L&#8217;Uso Dei Shortcode Di WordPress<\/b><\/h2>\n\n\n<p>Ci sono molteplici motivi per cui potresti voler utilizzare i shortcode di WordPress. Per cominciare, sono spesso pi\u00f9 facili da aggiungere alla tua pagina rispetto a imparare e scrivere un lungo pezzo di codice HTML.<\/p>\n\n\n<p>Inoltre, gli shortcode possono mantenere i tuoi contenuti puliti e organizzati. Non occupano tanto spazio nell&#8217;HTML del tuo post complessivo. Questo pu\u00f2 aiutarti a identificare facilmente gli errori quando utilizzi l&#8217;editor di codice.<\/p>\n\n\n<p>I Shortcodes sono anche riutilizzabili. Non dovrai aggiungere manualmente le stesse funzionalit\u00e0, come un Call to Action (CTA) o pulsanti dei social media, a ogni post. Invece, puoi semplicemente incollare il tuo shortcode.<\/p>\n\n\n<h2 id=\"h-wordpress-shortcodes-101-4-ways-to-use-these-snippets\" class=\"wp-block-heading\"><b>WordPress Shortcodes 101 (4 Modi di Utilizzare Questi Frammenti)<\/b><\/h2>\n\n\n<p>Ci sono due tipi fondamentali di shortcode con cui dovresti familiarizzare: auto-chiusura e contenitivi. Quelli di auto-chiusura stanno da soli e non necessitano di tag di chiusura:<\/p>\n\n\n<pre class=\"wp-block-preformatted\">[myshortcode]<\/pre>\n\n\n<p>I shortcode di tipo inclusione avvolgono un pezzo specifico di contenuto per modificarlo. Pertanto, i shortcode di tipo inclusione devono essere chiusi manualmente. Tipicamente appaiono cos\u00ec:<\/p>\n\n\n<pre class=\"wp-block-preformatted\">[myshortcode] contenuto [\/myshortcode]<\/pre>\n\n\n<p>Puoi anche cambiare le propriet\u00e0 degli shortcode con diversi attributi. Questi influenzeranno il modo in cui l&#8217;elemento viene visualizzato sul frontend.<\/p>\n\n\n<p>Ad esempio, potresti cambiare la dimensione di un shortcode della galleria aggiungendo un attributo di dimensione:<\/p>\n\n\n<pre class=\"wp-block-preformatted\">[gallery id=\"123\" size=\"medium\"]\u200b\u200b<\/pre>\n\n\n<p>Se esplori la <a href=\"https:\/\/wordpress.org\/plugins\/search\/shortcode\/\" target=\"_blank\" rel=\"noopener noreferrer\">directory dei plugin di WordPress<\/a>, scoprirai che ci sono molte opzioni per utilizzare gli shortcode sul tuo sito WordPress. Ecco quattro diverse opzioni!<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-wordpress-default-shortcodes\"><b>1. Shortcode Predefiniti di WordPress<\/b><\/h3>\n\n\n<p>WordPress include <a href=\"https:\/\/developer.wordpress.org\/plugins\/shortcodes\/#built-in-shortcodes\" target=\"_blank\" rel=\"noopener noreferrer\">shortcode di base integrati<\/a>. Questi frammenti ti permettono di incorporare media aggiuntivi direttamente nei tuoi post.<\/p>\n\n\n<p>Questi shortcode includono:<\/p>\n\n\n<ul class=\"wp-block-list\">\n<li><b>[caption]:<\/b> Inserisce didascalie intorno al contenuto.<\/li>\n\n\n\n<li><b>[gallery]:<\/b> Mostra gallerie di immagini.<\/li>\n\n\n\n<li><b>[audio]:<\/b> Incorpora e riproduce file audio.<\/li>\n\n\n\n<li><b>[video]:<\/b> Incorpora e riproduce file video.<\/li>\n\n\n\n<li><b>[playlist]:<\/b> Visualizza una raccolta di file audio o video.<\/li>\n\n\n\n<li><b>:<\/b> Inserisce elementi incorporati.<\/li>\n\n\n\n<\/ul>\n\n\n<p>Puoi anche abilitare una variet\u00e0 di shortcode aggiuntivi tramite il <a href=\"https:\/\/jetpack.com\/support\/shortcode-embeds\/\" target=\"_blank\" rel=\"noopener noreferrer\">plugin Jetpack<\/a>.<\/p>\n\n\n<div class=\"single__related-article\">\n\t<span>Related Article<\/span>\n\t<div class=\"single__related-article__wrap\">\n\t\t<div class=\"single__related-article__title\">\n\t\t\tThe Best WordPress Plugins in 2026 (According to Site Owners)\n\t\t<\/div>\n\t\t<a href=\"https:\/\/www-dev.dreamhost.com\/blog\/best-wordpress-plugins\/\" class=\"btn btn--sm btn--brand\" target=\"_blank\" rel=\"noopener\">\n\t\t\tRead More\n\t\t<\/a>\n\t<\/div>\n<\/div>\n\n<p><\/p>\n\n\n<p>Prima di tutto, assicurati che il modulo Jetpack sia abilitato cliccando su <i>Jetpack <\/i>nel tuo dashboard WordPress:<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"900\" height=\"396\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes15.jpg\" alt=\"Jetpack\" class=\"wp-image-33089 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes15.jpg.webp 900w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes15-300x132.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes15-768x338.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes15-600x264.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes15-730x321.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes15-784x345.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes15-877x386.jpg.webp 877w\" data-sizes=\"(max-width: 900px) 100vw, 900px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 900px; --smush-placeholder-aspect-ratio: 900\/396;\" \/><\/figure><\/div>\n\n<p>Poi, seleziona <i>Impostazioni<\/i>:<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"900\" height=\"250\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes9.jpg\" alt=\"Jetpack\" class=\"wp-image-33083 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes9.jpg.webp 900w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes9-300x83.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes9-768x213.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes9-600x167.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes9-730x203.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes9-784x218.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes9-877x244.jpg.webp 877w\" data-sizes=\"(max-width: 900px) 100vw, 900px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 900px; --smush-placeholder-aspect-ratio: 900\/250;\" \/><\/figure><\/div>\n\n<p>Vai alla scheda <i>Scrittura<\/i>, scorri verso il basso fino alla sezione <i>Composizione<\/i> e attiva <i>Componi utilizzando shortcode per incorporare media da siti popolari<\/i>:<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"900\" height=\"321\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes12.jpg\" alt=\"Jetpack\" class=\"wp-image-33086 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes12.jpg.webp 900w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes12-300x107.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes12-768x274.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes12-600x214.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes12-730x260.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes12-784x280.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes12-877x313.jpg.webp 877w\" data-sizes=\"(max-width: 900px) 100vw, 900px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 900px; --smush-placeholder-aspect-ratio: 900\/321;\" \/><\/figure><\/div>\n\n<p>Una volta attivata questa opzione, puoi utilizzare il [tweet] shortcode per incorporare un tweet specifico nel tuo post. Copia semplicemente l&#8217;URL del tweet e incollalo all&#8217;interno delle parentesi dello shortcode:<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"900\" height=\"230\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes14.jpg\" alt=\"Tweet shortcode\" class=\"wp-image-33088 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes14.jpg.webp 900w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes14-300x77.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes14-768x196.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes14-600x153.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes14-730x187.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes14-784x200.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes14-877x224.jpg.webp 877w\" data-sizes=\"(max-width: 900px) 100vw, 900px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 900px; --smush-placeholder-aspect-ratio: 900\/230;\" \/><\/figure><\/div>\n\n<p>Questo incorporer\u00e0 il tweet collegato nel tuo post. Il risultato apparir\u00e0 cos\u00ec:<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"750\" height=\"798\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes7.jpg\" alt=\"WordPress Twitter shortcode\" class=\"wp-image-33081 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes7.jpg.webp 750w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes7-282x300.jpg 282w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes7-600x638.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes7-730x777.jpg.webp 730w\" data-sizes=\"(max-width: 750px) 100vw, 750px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 750px; --smush-placeholder-aspect-ratio: 750\/798;\" \/><\/figure><\/div>\n\n<p>Puoi utilizzare questi shortcode aggiuntivi per incorporare una serie di altri media nei tuoi contenuti, inclusi playlist di Spotify, documenti Google o ricette.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-gutenberg-shortcodes\"><b>2. Shortcodes Gutenberg<\/b><\/h3>\n\n\n<p><a href=\"https:\/\/www.dreamhost.com\/blog\/wordpress-gutenberg-for-designers\/\" target=\"_blank\" rel=\"noopener noreferrer\">Blocchi Gutenberg<\/a> rendono l&#8217;aggiunta di contenuto dinamico nei tuoi post ancora pi\u00f9 semplice. L&#8217;Editor di Blocchi ti permette di modificare facilmente singole sezioni e applicare impostazioni e regole di formattazione specifiche per il blocco senza utilizzare plugin.<\/p>\n\n\n<p>L&#8217;<a href=\"https:\/\/www.dreamhost.com\/blog\/most-exciting-features-gutenberg-wordpress-editor\/\" target=\"_blank\" rel=\"noopener noreferrer\">editor Gutenberg \u00e8 evoluto<\/a> per rendere ancora pi\u00f9 facile la composizione di post e pagine WordPress. Offre un modo user-friendly per inserire shortcode. La maggior parte dei blocchi Gutenberg sostituisce gli shortcode standard, ma l&#8217;editor di blocchi si \u00e8 dimostrato un bersaglio in movimento, quindi \u00e8 una buona idea imparare ad usare gli shortcode per la funzionalit\u00e0.<\/p>\n\n\n<p>Ad esempio, potresti usare un blocco Gutenberg per incorporare il tweet del nostro esempio precedente invece di un shortcode. Devi solo cliccare sull&#8217;icona <i>+ <\/i>e selezionare il blocco <i>Twitter <\/i>:<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"377\" height=\"356\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes4.jpg\" alt=\"Blocco Twitter in WordPress\" class=\"wp-image-33079 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes4.jpg.webp 377w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes4-300x283.jpg 300w\" data-sizes=\"(max-width: 377px) 100vw, 377px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 377px; --smush-placeholder-aspect-ratio: 377\/356;\" \/><\/figure><\/div>\n\n<p>Questo metodo ti permette di incollare direttamente l&#8217;URL del tweet nel blocco senza scrivere lo shortcode tra parentesi quadre.<\/p>\n\n\n<div class=\"single__related-article\">\n\t<span>Related Article<\/span>\n\t<div class=\"single__related-article__wrap\">\n\t\t<div class=\"single__related-article__title\">\n\t\t\tYour Complete Guide to WordPress Full-Site Editing\n\t\t<\/div>\n\t\t<a href=\"https:\/\/www-dev.dreamhost.com\/blog\/wordpress-full-site-editing\/\" class=\"btn btn--sm btn--brand\" target=\"_blank\" rel=\"noopener\">\n\t\t\tRead More\n\t\t<\/a>\n\t<\/div>\n<\/div>\n\n<p><\/p>\n\n\n<p>Inoltre, l&#8217;Editor di Blocchi Gutenberg presenta un blocco <i>Shortcode <\/i>. Ti permette di gestire i tuoi frammenti nell&#8217;editor visuale senza scrivere direttamente il codice in HTML:<\/p>\n\n\n<p>Gutenberg ti permette anche di creare blocchi riutilizzabili, che possono essere utili per usare gli stessi frammenti di contenuto nei tuoi post. Possiamo dimostrare questo concetto con un CTA per i social media che potresti usare alla fine dei post che potresti scrivere sul tuo sito.<\/p>\n\n\n<p>Puoi iniziare selezionando il blocco <i>Shortcode<\/i> dal pop-up:<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"900\" height=\"265\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes11.jpg\" alt=\"Blocco Shortcode Gutenberg\" class=\"wp-image-33085 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes11.jpg.webp 900w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes11-300x88.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes11-768x226.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes11-600x177.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes11-730x215.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes11-784x231.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes11-877x258.jpg.webp 877w\" data-sizes=\"(max-width: 900px) 100vw, 900px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 900px; --smush-placeholder-aspect-ratio: 900\/265;\" \/><\/figure><\/div>\n\n<p>Poi, una volta aggiunto il tuo frammento CTA, clicca sui tre punti per un menu delle opzioni e seleziona <i>Aggiungi ai<\/i> <i>blocci riutilizzabili<\/i>:<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1348\" height=\"590\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes8.jpg\" alt=\"Blocchi riutilizzabili di WordPress\" class=\"wp-image-33082 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes8.jpg.webp 1348w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes8-300x131.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes8-1024x448.jpg 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes8-768x336.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes8-600x263.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes8-1200x525.jpg.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes8-730x320.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes8-784x343.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes8-877x384.jpg.webp 877w\" data-sizes=\"(max-width: 1348px) 100vw, 1348px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1348px; --smush-placeholder-aspect-ratio: 1348\/590;\" \/><\/figure><\/div>\n\n<p>Puoi quindi nominare il blocco riutilizzabile:<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"759\" height=\"473\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes13.jpg\" alt=\"denominazione dei blocchi riutilizzabili\" class=\"wp-image-33087 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes13.jpg.webp 759w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes13-300x187.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes13-600x374.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes13-730x455.jpg.webp 730w\" data-sizes=\"(max-width: 759px) 100vw, 759px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 759px; --smush-placeholder-aspect-ratio: 759\/473;\" \/><\/figure><\/div>\n\n<p>Il tuo frammento sar\u00e0 quindi salvato nella scheda riutilizzabile, consentendoti di usarlo ovunque nel tuo sito web, inclusi post, pagine e aree widget.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-3-plugin-shortcodes\"><b>3. Shortcodes Plugin<\/b><\/h3>\n\n\n<p>Diversi plugin WordPress includono anche i propri shortcode. Alcuni di questi strumenti possono addirittura aiutarti ad aggiungere parametri personalizzabili agli shortcode predefiniti esistenti.<\/p>\n\n\n<p>Ad esempio, puoi ottenere shortcode predefiniti per i moduli di contatto dal <a href=\"https:\/\/en-gb.wordpress.org\/plugins\/participants-database\/\" target=\"_blank\" rel=\"noopener noreferrer\">plugin Participants Database<\/a>. Potresti semplicemente digitare [pdb_signup] per inserire un modulo di iscrizione in un post:<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1000\" height=\"228\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes6.jpg\" alt=\"Blocco di Shortcode in WordPress\" class=\"wp-image-33080 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes6.jpg.webp 1000w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes6-300x68.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes6-768x175.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes6-600x137.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes6-730x166.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes6-784x179.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes6-877x200.jpg.webp 877w\" data-sizes=\"(max-width: 1000px) 100vw, 1000px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1000px; --smush-placeholder-aspect-ratio: 1000\/228;\" \/><\/figure><\/div>\n\n<p>Il modulo verr\u00e0 quindi visualizzato sul frontend:<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"687\" height=\"436\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes10.jpg\" alt=\"creazione di un modulo web in WordPress\" class=\"wp-image-33084 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes10.jpg.webp 687w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes10-300x190.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes10-600x381.jpg.webp 600w\" data-sizes=\"(max-width: 687px) 100vw, 687px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 687px; --smush-placeholder-aspect-ratio: 687\/436;\" \/><\/figure><\/div>\n\n<p>Se questo ti interessa, puoi leggere di pi\u00f9 sui <a href=\"https:\/\/www.dreamhost.com\/blog\/best-wordpress-plugins-you-dont-know-about\/\" target=\"_blank\" rel=\"noopener noreferrer\">altri plugin WordPress<\/a> che possono migliorare il tuo sito web. Questi includono il <a href=\"https:\/\/wordpress.org\/plugins\/enhanced-media-library\/\" target=\"_blank\" rel=\"noopener noreferrer\">plugin Enhanced Media Library<\/a>, che pu\u00f2 aiutarti a regolare i parametri per i shortcode Playlist e Gallery integrati.<\/p>\n\n\n<p>Tuttavia, ricorda di mantenere aggiornati i tuoi plugin shortcode di WordPress. Facendo ci\u00f2 puoi garantire che il tuo sito funzioni <a href=\"https:\/\/www.dreamhost.com\/blog\/optimize-wordpress-website-speed\/\" target=\"_blank\" rel=\"noopener noreferrer\">il pi\u00f9 velocemente possibile<\/a> e non sia vulnerabile a minacce alla sicurezza.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-4-custom-shortcodes\"><b>4. Shortcode Personalizzati<\/b><\/h3>\n\n\n<p>Se hai bisogno di ulteriori funzionalit\u00e0 dagli shortcode, \u00e8 possibile crearne di personalizzati. Possono essere strumenti preziosi per gli sviluppatori che cercano di ridurre il tempo speso nella codifica ripetitiva.<\/p>\n\n\n<p>Dovresti notare che la creazione di shortcode personalizzati richiede una certa conoscenza tecnica. Se non ti senti sicuro con la programmazione, potresti voler optare per una delle altre strategie che abbiamo menzionato.<\/p>\n\n\n<p>Se vuoi provare questo metodo, considera l&#8217;utilizzo di un <a href=\"https:\/\/generatewp.com\/shortcodes\/\" target=\"_blank\" rel=\"noopener noreferrer\">generatore come GenerateWP<\/a> per assisterti nella formattazione del tuo codice da zero. Puoi compilare diversi campi di attributi per modificare l&#8217;aspetto dell&#8217;elemento secondo i tuoi gusti.<\/p>\n\n\n<p>Puoi quindi implementare questi shortcode utilizzando la <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/add_shortcode\/\" target=\"_blank\" rel=\"noopener noreferrer\">funzione add_shortcode<\/a>. In azione, apparir\u00e0 cos\u00ec:<\/p>\n\n\n<pre class=\"wp-block-preformatted\">add_shortcode( string $tag, callable $callback )<\/pre>\n\n\n<p>Tuttavia, se non ti senti a tuo agio nel creare da zero un shortcode personalizzato, c&#8217;\u00e8 un&#8217;altra soluzione! Puoi contattare il nostro team di <a href=\"https:\/\/www.dreamhost.com\/pro-services\/development\/\" target=\"_blank\" rel=\"noopener noreferrer\">servizi di sviluppo web personalizzato<\/a> e noi possiamo aiutarti:<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1878\" height=\"742\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes3.jpg\" alt=\"Servizi Professionali DreamHost - Design di siti web WordPress\" class=\"wp-image-33078 lazyload\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes3.jpg.webp 1878w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes3-300x119.jpg 300w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes3-1024x405.jpg 1024w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes3-768x303.jpg 768w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/wordpress-shortcodes3-1536x607.jpg 1536w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes3-600x237.jpg.webp 600w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes3-1200x474.jpg.webp 1200w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes3-730x288.jpg.webp 730w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes3-1460x577.jpg.webp 1460w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes3-784x310.jpg.webp 784w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes3-1568x620.jpg.webp 1568w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes3-877x347.jpg.webp 877w, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/smush-webp\/2022\/03\/wordpress-shortcodes3-1754x693.jpg.webp 1754w\" data-sizes=\"(max-width: 1878px) 100vw, 1878px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1878px; --smush-placeholder-aspect-ratio: 1878\/742;\" \/><\/figure><\/div>\n\n<p>Usando i Servizi Professionali DreamHost, devi solo compilare una richiesta di sviluppo web. Ti faremo alcune semplici domande sul tuo sito web e sulle tue esigenze. Poi, possiamo metterci al lavoro per implementare le tue modifiche su una versione provvisoria del tuo sito. Una volta che hai approvato gli ultimi aggiustamenti, possiamo applicare il nuovo codice al tuo sito live!<\/p>\n\n\n<h2 id=\"h-use-wordpress-shortcodes-to-enhance-your-content\" class=\"wp-block-heading\"><b>Usa Gli Shortcodes Di WordPress Per Migliorare Il Tuo Contenuto<\/b><\/h2>\n\n\n<p>I shortcode di WordPress possono migliorare i contenuti del tuo sito con funzionalit\u00e0 coinvolgenti per i visitatori. Possono garantire che i lettori interagiscano con il tuo sito e continuino a tornare per altro.<\/p>\n\n\n<p>In questo post, abbiamo delineato quattro metodi per utilizzare i shortcode di WordPress sul tuo sito:<\/p>\n\n\n<ol class=\"wp-block-list\">\n<li>Shortcodes predefiniti di WordPress<\/li>\n\n\n\n<li>Shortcodes di Gutenberg<\/li>\n\n\n\n<li>Shortcodes dei Plugin<\/li>\n\n\n\n<li>Shortcodes personalizzati<\/li>\n\n\n\n<\/ol>\n\n\n<p>Se senti di non avere l&#8217;esperienza tecnica o il tempo per scrivere shortcode o blocchi, non preoccuparti! Puoi consultare i nostri <a href=\"https:\/\/www.dreamhost.com\/pro-services\/development\" target=\"_blank\" rel=\"noopener noreferrer\">Servizi Professionali di Sviluppo Siti Web<\/a> per scoprire come possiamo personalizzare il tuo sito con codice di alta qualit\u00e0.<\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"200\" height=\"202\" data-src=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2020\/07\/CTA-Customer-Spotlight-2.png\" alt=\"Servizi di sviluppo di siti web personalizzati DreamHost\" class=\"wp-image-25383 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 200px; --smush-placeholder-aspect-ratio: 200\/202;\" \/><\/figure><\/div>\n\n\n\n<div\n\tclass=\"article-cta-shared article-cta-small\"\n>\n    <div class=\"tr-img-wrap-outer jsLoading\"><img decoding=\"async\" class=\"js-img-lazy \" src=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/themes\/blog2018\/assets\/img\/lazy-loading-transparent.webp\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/themes\/blog2018\/assets\/img\/article-small-ad-cta-placeholder.webp 1x, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/themes\/blog2018\/assets\/img\/article-small-ad-cta-placeholder-x2.webp 2x\"  alt=\"Ad background image\" \/><\/div>\n\n\n\n\n  <div class=\"content-btm\">\n    <h2\n      class=\"h2--md\"\n    >\n      Lo Sogni, Noi Lo Programmiamo\n    <\/h2>\n    <p\n      class=\"p--md\"\n    >\n      Sfrutta oltre 20 anni di esperienza nella programmazione quando scegli il nostro servizio di Sviluppo Web. Dicci solo cosa desideri per il tuo sito u2014 ci occupiamo noi del resto.\n    <\/p>\n\n            <a\n            href=\"https:\/\/www.dreamhost.com\/pro-services\/development\/\"\n                        class=\"btn btn--white-outline btn--sm btn--round\"\n                                    target=\"_blank\"\n            rel=\"noopener noreferrer\"\n            >\n                            Scopri di Pi\u00f9                    <\/a>\n\n  <\/div>\n<\/div>\n\n<p><\/p>\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>I shortcode di WordPress possono facilmente arricchire il tuo sito web con elementi coinvolgenti e interattivi che possono essere ripetuti nei post e nelle pagine. Esempi includono gallerie di immagini, moduli di contatto e playlist per rendere il tuo contenuto pi\u00f9 utile e coinvolgente. In questo post, discuteremo i shortcode di WordPress e perch\u00e9 sono utili. Poi, delineeremo quattro metodi per iniziare a utilizzare [\u2026]<\/p>\n","protected":false},"author":1060,"featured_media":33073,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_yoast_wpseo_metadesc":"Scopri tutto sui potenti strumenti dinamici che sono gli Shortcode di WordPress e come i contenuti dinamici continuano a evolversi con i Blocchi Gutenberg. Scopri di pi\u00f9!","toc_headlines":"[[\"h-wordpress-shortcodes-101\",\"WordPress Shortcodes 101\"],[\"h-why-you-might-consider-using-wordpress-shortcodes\",\"Perch\u00e9 Potresti Considerare L'Uso Dei Shortcode Di WordPress\"],[\"h-wordpress-shortcodes-101-4-ways-to-use-these-snippets\",\"WordPress Shortcodes 101 (4 Modi di Utilizzare Questi Frammenti)\"],[\"h-use-wordpress-shortcodes-to-enhance-your-content\",\"Usa Gli Shortcodes Di WordPress Per Migliorare Il Tuo Contenuto\"]]","hide_toc":false,"footnotes":""},"categories":[15048,15080,15072],"tags":[],"class_list":["post-68356","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dreampress-it","category-getting-started-it","category-wordpress-it"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.3 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Un&#039;Introduzione agli Shortcodes di WordPress (Con Esempi) - DreamHost Blog<\/title>\n<meta name=\"description\" content=\"Scopri tutto sui potenti strumenti dinamici che sono gli Shortcode di WordPress e come i contenuti dinamici continuano a evolversi con i Blocchi Gutenberg. Scopri di pi\u00f9!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Un&#039;Introduzione agli Shortcodes di WordPress (Con Esempi)\" \/>\n<meta property=\"og:description\" content=\"Scopri tutto sui potenti strumenti dinamici che sono gli Shortcode di WordPress e come i contenuti dinamici continuano a evolversi con i Blocchi Gutenberg. Scopri di pi\u00f9!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/\" \/>\n<meta property=\"og:site_name\" content=\"DreamHost Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DreamHost\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-10T15:00:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-11T20:22:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/guide-to-wordpress-shortcodes.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"598\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Brian Glassman\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:site\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brian Glassman\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Un'Introduzione agli Shortcodes di WordPress (Con Esempi) - DreamHost Blog","description":"Scopri tutto sui potenti strumenti dinamici che sono gli Shortcode di WordPress e come i contenuti dinamici continuano a evolversi con i Blocchi Gutenberg. Scopri di pi\u00f9!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/","og_locale":"en_US","og_type":"article","og_title":"Un'Introduzione agli Shortcodes di WordPress (Con Esempi)","og_description":"Scopri tutto sui potenti strumenti dinamici che sono gli Shortcode di WordPress e come i contenuti dinamici continuano a evolversi con i Blocchi Gutenberg. Scopri di pi\u00f9!","og_url":"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/","og_site_name":"DreamHost Blog","article_publisher":"https:\/\/www.facebook.com\/DreamHost\/","article_published_time":"2022-03-10T15:00:44+00:00","article_modified_time":"2025-06-11T20:22:18+00:00","og_image":[{"width":900,"height":598,"url":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/guide-to-wordpress-shortcodes.jpeg","type":"image\/jpeg"}],"author":"Brian Glassman","twitter_card":"summary_large_image","twitter_creator":"@dreamhost","twitter_site":"@dreamhost","twitter_misc":{"Written by":"Brian Glassman","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/#article","isPartOf":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/"},"author":{"name":"Brian Glassman","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/person\/e25c31f16fee80576bdd8b93a066f3de"},"headline":"Un&#8217;Introduzione agli Shortcodes di WordPress (Con Esempi)","datePublished":"2022-03-10T15:00:44+00:00","dateModified":"2025-06-11T20:22:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/"},"wordCount":1381,"publisher":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/#primaryimage"},"thumbnailUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/guide-to-wordpress-shortcodes.jpeg","articleSection":["DreamPress","Per iniziare","WordPress"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/","url":"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/","name":"Un'Introduzione agli Shortcodes di WordPress (Con Esempi) - DreamHost Blog","isPartOf":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/#primaryimage"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/#primaryimage"},"thumbnailUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/guide-to-wordpress-shortcodes.jpeg","datePublished":"2022-03-10T15:00:44+00:00","dateModified":"2025-06-11T20:22:18+00:00","description":"Scopri tutto sui potenti strumenti dinamici che sono gli Shortcode di WordPress e come i contenuti dinamici continuano a evolversi con i Blocchi Gutenberg. Scopri di pi\u00f9!","breadcrumb":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/#primaryimage","url":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/guide-to-wordpress-shortcodes.jpeg","contentUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/03\/guide-to-wordpress-shortcodes.jpeg","width":900,"height":598,"caption":"guide to WordPress Shortcodes"},{"@type":"BreadcrumbList","@id":"https:\/\/www-dev.dreamhost.com\/blog\/it\/un8217introduzione-agli-shortcodes-di-wordpress-con-esempi-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dhblog.dream.press\/blog\/"},{"@type":"ListItem","position":2,"name":"Un&#8217;Introduzione agli Shortcodes di WordPress (Con Esempi)"}]},{"@type":"WebSite","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#website","url":"https:\/\/www-dev.dreamhost.com\/blog\/","name":"DreamHost Blog","description":"","publisher":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www-dev.dreamhost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization","name":"DreamHost","url":"https:\/\/www-dev.dreamhost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","contentUrl":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","width":1200,"height":168,"caption":"DreamHost"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DreamHost\/","https:\/\/x.com\/dreamhost","https:\/\/www.instagram.com\/dreamhost\/","https:\/\/www.linkedin.com\/company\/dreamhost\/","https:\/\/www.youtube.com\/user\/dreamhostusa"]},{"@type":"Person","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/person\/e25c31f16fee80576bdd8b93a066f3de","name":"Brian Glassman","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/01\/brian-glassman-dreamhost-150x150.jpg","url":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/01\/brian-glassman-dreamhost-150x150.jpg","contentUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2022\/01\/brian-glassman-dreamhost-150x150.jpg","caption":"Brian Glassman"},"description":"SEO leader and content marketer, Brian is DreamHost\u2019s Director of SEO. Based in Chicago, Brian enjoys the local health food scene (deep dish pizza, Italian beef sandwiches) and famous year-round warm weather. Follow Brian on LinkedIn.","sameAs":["https:\/\/www.linkedin.com\/in\/brianglassmandesign\/"],"url":"https:\/\/www-dev.dreamhost.com\/blog\/author\/brian\/"}]}},"lang":"it","translations":{"it":68356,"es":33096,"en":33069,"de":52332,"pl":55006,"uk":55028,"pt":55062,"ru":55116,"fr":70366,"nl":70395},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/68356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/users\/1060"}],"replies":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/comments?post=68356"}],"version-history":[{"count":2,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/68356\/revisions"}],"predecessor-version":[{"id":68361,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/68356\/revisions\/68361"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/media\/33073"}],"wp:attachment":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/media?parent=68356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/categories?post=68356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/tags?post=68356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}