Visualizzazione 3 filoni di risposte
Visualizzazione 3 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Problemi Vari con WP › Inserire una pagina fatta da me
Salve, volevo sapere come fare a inserire ad esempio una pagina fatta da me in wordpress.
Ad esempio al posto di creare una pagina dal menu di amministratore, inserire una pagina nuova nel main di wordpress.
Grazie
In particolare m i psiego meglio:
Quando scrivo una pagina, non faccio altro che inserire in una tabella del database un post.
Io vorrei che al posto di inserire nel database venga appunto scritta in html e quindi esterna.
COsi posso inserire ad esempio del codice php.
Grazie
potresti anche mettere phpexec come plugin, che ti permette di mettere del codice php nel post, a questo punto credo che nulla ti vieti di fare un include del file che vuoi inserire
Byez
Gollum1
per michelef:
Quando scrivi una pagina, oltre ad inserire un “post” nel database, associ a questa pagina un template, cioè uno script in PHP. Questo script può fare tutto quello che si può fare con HTML e PHP, anche ignorare il contenuto del “post” di cui sopra. Spesso infatti le pagine WP hanno il relativo “post” assolutamente vuoto.
Un esempio di quanto detto puoi trovarlo in http://www.dontdream.it/home/indici-per-un-sito-wordpress/
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0