Risposte nei forum create
-
AutorePost
-
6 Maggio 2008 alle 17:11 in risposta a: template (o semplice nome) alternativo per i commenti di alcune pagine #53420essezetaPartecipante
SteveAgl sei sempre il primo a rispondere… GRAZIE!!!
Senti, ad intuito io c’ero già arrivato a quello che mi dici… ma credimi ci ho provato e ho fatto un gran casino… con cicli condizioni ecc. mi perdo…
Non è che quando ti avanzano 2 minuti mi “imboccheresti” (come si dice dalle mie parti) la procedura?
Tanto lo so che è una cosa da due minuti… ma io dimentico sempre qualche ; ” o gestisco illogicamente elseif e co…
Naturalmente io non me ne sto con le mani in mano… Io intanto ci riprovo da solo seguendo il tuo consiglio e posto quello che ho fatto, cosଠmagari mi correggi.
Grazie comunque
gnl
25 Marzo 2008 alle 10:41 in risposta a: Diversi temi (uno per pagina) su un’unica installazione #51760essezetaPartecipanteCiao SteveAgl,
grazie ancora, sei stato abbastanza chiaro… con l’include riesco a fare molto…
Volevo consultarmi con te (e chiunque altro legga) su questa soluzione per avere diversi temi per diverse pagina (ci sono arrivato incrociando altre soluzioni ideate per altre cose: a partire da quella che mi hai segnalato tu):
Se io metto nel mio page.php il codice che segue dovrebbe andare no? (ora lo testo, ma intanto volevo un consulto…)
<?php
$post = $wp_query->post;
if ( is_page('Sezione_A') ) {
include(TEMPLATEPATH . '/pageA.php');
elseif ( is_page('Sezione_B') ) {
include(TEMPLATEPATH . '/pageB.php');
elseif ( is_page('Sezione_C') ) {
include(TEMPLATEPATH . '/pageC.php');
} else {
include(TEMPLATEPATH . '/pageD.php');
}
?>
Naturalmente provvedendo alle modifiche anche agli altri file, ad esempio single.php, ecc.
Che ne pensi, vado nella direzione giusta?
Un saluto
23 Marzo 2008 alle 11:00 in risposta a: Diversi temi (uno per pagina) su un’unica installazione #51720essezetaPartecipanteGrazie del consiglio SteveAgl (+ interessante il tuo blog, l’ho bookmarkato… e ho aggiunto qualcosa ad instapaper che mi hai fatto scoprire)…
ho fatto un rapido test e con il plugin che mi consigli e utilizzando le categorie (invece delle pagine) per distinguere le mie sezioni riesco a venirne a capo (quasi) come volevo…
…volevo però sapere qualcosa in più sul tuo dire a meno di non usare le funzione get_header etc e creare pagine che comprendono tutto…
cosa intendi di preciso? perchè secondo me la soluzione adatta per ciò che vorrei fare è lଅ non sono espertissimo, ma riesco anche a lavorare di modifica con metodo e allora quel tuo creare pagine che comprendono tutto potrei riuscire a farlo… quando/se trovi un po’ di tempo ti va di approfondire qulla tua ipotesi con qualche dettaglio in più?
Grazie comunque…
Mi chiedevo poi: esiste un modo per fare GET e richiamare un modulo personalizzato (ma naturalmente rispettoso degli “standard” dei moduli di WP)?
Una cosa tipo get_header e get_sidebar che mi richiamino header.php e sidebar.php da un percorso differente? o modificati come dicevo io nel mio post iniziale (tipo sidebarBIS)?
-
AutorePost