Home › Forum › Problemi Vari con WP › informazioni interazioni “esterne” wordpress
-
AutorePost
-
-
10 Giugno 2008 alle 17:16 #6937alessandro85Partecipante
Ciao a tutti.
Avrei un problemuccio da risolvere in fretta e furia.
sto usando wordpress per fare il blog di un sito. Più precisamente:
http://www.intotheoz.com/prova
come vedete non è una pagina wordpress e vorrei che la homepage restasse una semplice pagina fatta in dreamweaver. Nelle sezioni news e archive ora come ora ho messo una prova giusto per finire visivamente il sito ma vorrei invece che queste zone fossero collegate alla sezione archivi e alla sezione recenti di wordpress. Magari usando la funzione include boh.. ho provato una volta ma non ha funzionato.
Pensate che sia possibile una cosa del genere?
grazie e per favore datemi una mano che non so più dove sbattere la testa per questo problema.
-
10 Giugno 2008 alle 17:55 #54578ondapiPartecipante
qui dovresti trovare aiuto
http://www.wpitaly.it/forum/topic/4065
forse qualcosa pure qui
http://www.wpitaly.it/forum/topic/6528
poi c’è sempre il cerca nel forum
-
10 Giugno 2008 alle 19:01 #54585alessandro85Partecipante
ah ok grazie. Quindi per il recent uso quello script.. e per l’archivio invece come posso fare?
-
10 Giugno 2008 alle 19:21 #54588ondapiPartecipante
probabilmente è possibile creare una query in php anche per estrarre i post a seconda delle categorie o degli archivi mensili, e cosଠsuddividerli, ma io opterei per un iframe con un file stile sidebar dove estrai i dati con le funzioni classiche di wp, ovviamente il file dovrà comprendere l’header e il footer che però non sarà presente alcun elemento html di disturbo, si lo so forse non è una soluzione elegantissima ma funziona ed è semplice da gestire,
e se invece di fare tutta sta roba non crei un template di pagina specifico per la tua home page e la costruisci a modo tuo anche associando un foglio di stile specifico per questa,. forse potrebbe essere una soluzione più elegante
-
10 Giugno 2008 alle 20:26 #54591alessandro85Partecipante
eh volevo evitare di wordpressare anche la homepage dato che dovrò farci delle piccole modifiche di tanto in tanto. (vedi sezioni video o team)
Quindi dici che non si può fare un archivio usando un altro script come per il recent? Alla fine non posso passare per wordpress (che crea l’archivio) e stampare il suo output nel mio div archivio in qualche modo?
-
11 Giugno 2008 alle 20:37 #54627alessandro85Partecipante
ma l’unico modo per visualizzare i recent è testo non cliccabile? non posso inserire un thumbinal affianco della prima foto che ho inserito?
-
11 Giugno 2008 alle 22:43 #54631ondapiPartecipante
Quindi dici che non si può fare un archivio usando un altro script come per il recent?
si può fare eccome
Alla fine non posso passare per wordpress (che crea l’archivio) e stampare il suo output nel mio div archivio in qualche modo?
usando un iframe
ma l’unico modo per visualizzare i recent è testo non cliccabile?
questo ti da i recenti con il link al post
per il resto penso sia possibile fare tutto, hai un database, con alcuni script in php puoi estrre e organizzare tutti i dati in esso contenuti, per estrarre i dati bisogna mettere in relazione le varie tabelle, ma però ho l’impressione che stiamo andando OT, ora siamo in php e non più in wp
io starei dentro wp con un bel template di pagina dove dentro ci puoi mettere tutto quello che vuoi, hai alla fine un bel contenitore che si aggiorna in automaticamente
non è difficile ma ci vuole un attimo di pazienza, intanto per creare qualcosa in fretta e furia io starei un iframe, ma la considererei una soluzione tampone
puoi inserire all’interno di un template di pagina molte cose un esempio
vuoi mettere nel tuo template il contenuto di una pagina statica seguito dai tuoi articoli?
<?php query_posts('page_id=xx'); while (have_posts()) : the_post(); ?>
<?php the_content(); ?><?php endwhile; ?>
per stampare la pagina dove xx va sostituito con l'id
<?php query_posts('showposts=6'); while (have_posts()) : the_post(); ?>
<?php the_title(); ?><?php the_excerpt(); ?><?php endwhile; ?>
showposts=6 mostra i primi 6 articoli di tutte le categoria
showposts=4&cat=3 mostra i 4 articoli della categoria 3
<?php the_title(); ?><?php the_excerpt(); ?> andranno rispettivamente formattati
tutte le stringhe possono essere ripetute nello stesso tempalte
-
12 Giugno 2008 alle 20:36 #54669alessandro85Partecipante
non ho ben capito cosa fa l’ultimo codice che hai scritto.
Grazie mille per l’aiuto. Sto valutando tutte le alternative ma ultimamente non ho troppo tempo da dedicare al sito perchè ho degli esami a fine mese.
p.s. ho un altro problemuccio con wp.. dovrei inserire un menu e pensavo di inserirlo nel tema in modo tale che venga aggiunto ad ogni messaggio inserito.
C’è qualche accorgimento per inserire un menu con effetto rollover? non mi fa vedere le immagini dentro le tabelle. Io ho inserito il semplice codice html generato da dreamweaver che rigurdava il menu.
Avevo già chiesto anche in questo topic:
-
21 Giugno 2008 alle 11:11 #55040alessandro85Partecipante
ok dovrei aver quasi risolto con il recent anche se mi mancano un paio di caratteristiche tipo time e riassunto.
Per l’archivio come posso fare?
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.