Visualizzazione 3 filoni di risposte
Visualizzazione 3 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Plugin e temi di WP › richiamare da libreria media un file diverso per un ogni articolo?!
sembrerò pazzo ma sezionando un tema sono arrivato ad un bivio….
il tema era composto da una parte a sx con l’articolo e uno spazio a dx per i commenti. HO VOLUTO ELIMINARE LA FUNZIONE COMMENTI per poter dare spazio ad un video diverso per ogni articolo…
a questo indirizzo vedete cosa ho in mente..
http://sitobozza.altervista.org/blog/?p=36
fatto come l’ho impostato richiama un video identico per tutti gli articoli, ma io vorrei un plugin o un modo per far si che si possa gestire in maniera umana l’associazione di un articolo con un determinato video.
Campo personalizzato nell’articolo con l’id del video che viene letto per generare ilc odice di inclusione video opportuno.. dipende da quanto sai lavorare in PHP.. e quanto conosci bene il tema l’hetml etc…
qualche link? o qualche dritta in più?
allora, utilizzando il campo campo personalizzato sull’articolo e questo codice qua sono riuscito a richiamre un’immagine…
<?php $image = get_post_meta($post->ID, ‘image’, true);
if($image) : ?>
” alt=”<?php the_title(); ?>” />
<?php endif; ?>
ma se provo a dirli di richiamare un video non succede nulla…
è un po’ come se non caricasse un player, ma è solo una mia impressione… dove sbaglio?
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0