Un utente ha chiesto
Categoria: Custom Simple Rss di WordPress
Domanda: Gli shortcode della galleria non vengono visualizzati come immagini
Lo shortcode per “gallery” rimane uno shortcode nel feed rss e non si espande per diventare le immagini stesse.
Il feed predefinito mostra:
<a href='https://www.myconfinedspace.com/2019/12/13/spider-hand-stand/spider-hand-stand-2/'><img width="640" height="360" src="https://www.myconfinedspace.com/wp-content/uploads/2019/12/1056158-1000x563.jpg" class="attachment-large size-large" alt="" srcset="https://www.myconfinedspace.com/wp-content/uploads/2019/12/1056158-1000x563.jpg 1000w, https://www.myconfinedspace.com/wp-content/uploads/2019/12/1056158-720x405.jpg 720w, https://www.myconfinedspace.com/wp-content/uploads/2019/12/1056158-200x113.jpg 200w, https://www.myconfinedspace.com/wp-content/uploads/2019/12/1056158-1536x864.jpg 1536w, https://www.myconfinedspace.com/wp-content/uploads/2019/12/1056158-2048x1152.jpg 2048w" sizes="(max-width: 640px) 100vw, 640px" /></a>
Feed RSS personalizzato semplice:
-
Autore del plugin
(@danikoo)
Ciao e scusa per il ritardo nella risposta
nelle impostazioni del plug-in, scegli in “mostra il contenuto del post nel feed:”
l’opzione “visualizza html pulito”Questo dovrebbe fare il trucco
dimmi se questo ha risolto il problema per tegrazie
danny(@tgiokdi)
Ah, questo è un ulteriore passaggio, sembra che il contenuto generato dagli shortcode da CSR non corrisponda a quello generato dal feed predefinito e Facebook fa fatica a riconoscere le immagini nel feed.
Contenuto CSR:
<![CDATA[ <div class="rgg-container" data-rgg-id="1"> <div class="rgg-imagegrid captions-title captions-effect-none " data-rgg-id="1"> <a href="https://www.myconfinedspace.com/2019/12/27/deathstroke-taking-aim/deathstroke-taking-aim-2/" data-rel="rgg" rel="rgg" title="" class="rgg-disabled size-medium rgg-img" data-src="https://www.myconfinedspace.com/wp-content/uploads/2019/12/Iy5Hpni-720x405.jpg" data-ratio="1.7777777777778" data-height="405" data-width="720"> </a> </div> </div> ]]>
contenuto predefinito:
<content:encoded><![CDATA[ <a href='https://www.myconfinedspace.com/2019/12/27/deathstroke-taking-aim/deathstroke-taking-aim-2/'><img width="720" height="405" src="https://www.myconfinedspace.com/wp-content/uploads/2019/12/Iy5Hpni-720x405.jpg" class="attachment-medium size-medium" alt="" srcset="https://www.myconfinedspace.com/wp-content/uploads/2019/12/Iy5Hpni-720x405.jpg 720w, https://www.myconfinedspace.com/wp-content/uploads/2019/12/Iy5Hpni-1000x563.jpg 1000w, https://www.myconfinedspace.com/wp-content/uploads/2019/12/Iy5Hpni-200x113.jpg 200w, https://www.myconfinedspace.com/wp-content/uploads/2019/12/Iy5Hpni-1536x864.jpg 1536w, https://www.myconfinedspace.com/wp-content/uploads/2019/12/Iy5Hpni-2048x1152.jpg 2048w" sizes="(max-width: 720px) 100vw, 720px" /></a> ]></content:encoded>
Hai risolto il tuo problema?
0 / 0