Home › Forum › Plugin e temi di WP › Tema Personalizzato per Post
-
AutorePost
-
-
24 Febbraio 2010 alle 16:23 #13118msgraphicitPartecipante
Ciao, come da titolo è possibile cerare un tema diverso per ogni articolo, come per le pagine?
grazie.
-
24 Febbraio 2010 alle 16:35 #71702wollyAmministratore del forum
fattibile è fattibile basta che crei una serie di cicli if che modificano gli attributi in base all’id del post ma, lo trovo decisamente scomodo.
-
24 Febbraio 2010 alle 16:59 #71704ondapiPartecipante
l’ideale sarebbe di avere un template da applicare agli articoli come succede per le pagine.
Volendo si potrebbe applicare alle categorie con gli IF di wolly
il tema Monotone … sotto un certo punto di vista … ti viene incontro
-
24 Febbraio 2010 alle 17:24 #71707msgraphicitPartecipante
Grazie.
Cmq anche se scomodo dove potrei reperire una giuda in merito.
Inoltre, la mi a intenzione è quella di inserire uno script solo in alcuni post!
se conoscete un modo per inserire all’interno solo dei poste che vuoi tu materiale exstra agli altri post saranno appezzati.
-
24 Febbraio 2010 alle 17:29 #71708wollyAmministratore del forum
crei una categoria ad hoc e inserisci quei post in quella categoria, poi fai un semplicissimo if in_category e fai quello che vuoi.
-
24 Febbraio 2010 alle 17:44 #71712msgraphicitPartecipante
semplicissimo if in_category ovvero?
-
24 Febbraio 2010 alle 17:46 #71713wollyAmministratore del forum
-
24 Febbraio 2010 alle 18:01 #71714msgraphicitPartecipante
Non ci ho capito niente!
-
24 Febbraio 2010 alle 18:03 #71715wollyAmministratore del forum
un minimo di php devi conoscerlo, prova a studiarti i cicli if su php.hmtl.it
-
24 Febbraio 2010 alle 18:20 #71716msgraphicitPartecipante
grazie lo stesso.
Se qualcuno sa dove reperire già il codice o un tutorial è gradito.
-
24 Febbraio 2010 alle 18:22 #71717msgraphicitPartecipante
Ma leggo su molti articoli che basta inserire categoria-ID.php e ID sostituirlo con in numero della categoria.
Ma ha me non funziona.
-
24 Febbraio 2010 alle 18:28 #71718wollyAmministratore del forum
leggi male, quello serve per i template della pagina di categoria e cioè la pagina che ti viene mostrata quando clikki sul nome di una categoria.
Quello che vuoi fare tu lo fai come ti ho detto.
-
24 Febbraio 2010 alle 18:35 #71719ondapiPartecipante
<?php if ( in_category('3' )==true) {echo "quello che vuoi";} ?>
-
25 Febbraio 2010 alle 15:30 #71739msgraphicitPartecipante
Risolto!!!!!!!!!!!!!!
La soluzione di chiama Single Post Template.
Ho trovato questo fantastico plugin che permette di creare template come per pagine.
Ecco il Link
http://wordpress.org/extend/plugins/single-post-template/installation/
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.