Risposte nei forum create
-
AutorePost
-
andreacutelliPartecipante
< img src=”<? php echo get_img_link(get_the_content()); ?>” alt=”” />
andreacutelliPartecipanteho risolto in questo modo.. probabilmente poco elegante ma molto funzionale.
ho inserito nel file functions.php la seguente stringa:
function get_img_link($stringa) {
$pattern = "";
preg_match($pattern, $stringa, $img);
$img_url = $img[2];
return $img_url;
}
e nei files single.php e archive.php ho aggiunto la chiamata:
" alt="" />
in questo modo, inserendo testo ed immagine in un unico articolo, é possibile visualizzarli separatamente in 2 punti diversi della pagina.
si poteva ovviare comodamente con i CSS attribuendo dei parametri di "posizionamento" assoluti o relativi ma non tutti i browser li avrebbero interpretati correttamente.
spero possa essere d'aiuto a qualcuno!
saluti.
andreacutelliPartecipanteuhm.. safari te lo legge e IE no..?
mi sembra una cosa cosଠstrana..
ad ogni modo, wordpress non c’entra nulla, come dice wolly però d’altro canto, se con i css hai dei problemi, puoi sempre modificare la struttura del sorgente php (html) in modo da escludere a priori tutti quei fastidiosi problemi di allineamento.. magari usando le vecchie care tabelle
andreacutelliPartecipantesi, é possibile escluderlo dalla Homepage
nella directory del template in uso, se ci fai caso, hai 2 file molto simili: index.php e page.php
modifica il primo file come ti serve.
andreacutelliPartecipantewolly, innanzitutto grazie per la cortesia ma ho provato con il codice che hai scritto ma non mi funziona..
sto usando per necessità , la versione 2.5 di wp ma non riesco a venire a capo di una soluzione qualsiasi..
e cmq, non devo visualizzare un’immagine qualunque ma esattamente quella che carico assieme all’articolo.
..non credo di farcela )
25 Luglio 2008 alle 8:39 in risposta a: Finestra bianca con Aggiungi Media dopo l’inserimento di file #56270andreacutelliPartecipanteanche a me diede il medesimo problema con la versione 2.5.1 ma ho scoperto che si trattava di un conflitto con il plugin wp-statpress
però, non é bastato deattivare il plugin..
ho dovuto reinstallare WP da capo, evitando.. come sto facendo ora, l’utilizzo di plugin troppo invasivi.
andreacutelliPartecipantecon molta probabilità , é colpa del plugin, anche se non sono sicuro al 100% e non ho mai visto questo plugin in funzione.
prova a disattivarlo e vedi se da ancora il problema (non credo si possano utilizzare i parametri di gestione di entrambi.. probabilmente uno esclude l’altro.)
andreacutelliPartecipantesi Steve.. ho fatto queste operazioni per ben 3 volte su 2 domini differenti…
stesso identico problema.
andreacutelliPartecipanteesiste un simpatico plug-in che ti permette di escludere le pagine reperibile a questo indirizzo.
spero di esserti stato d’aiuto.
-
AutorePost