Home › Forum › Problemi Vari con WP › wordpress mantenere login
-
AutorePost
-
-
17 Ottobre 2016 alle 14:20 #31116annalisalupoPartecipante
Salve a tutti,
sono nuovissimissima del form e di wp con i suoi linguaggi, mi scuso per la domanda che a voi potrà sembrare banale, ma n0n sono un programmatore e non faccio siti web di mestiere… spero possiate ugualmente aiutarmi.
…ho istallato wordpress e iniziato a costruire il mio sito web con il tema zerif lite e l’ausilio di alcuni plugin tra cui: ultimate member, ho personalizzato un pochino la grafica etc…
ora avrei bisogno di far compilare un form di sottomissione dati ad alcuni utenti, ho scritto la form in html e pubblicata in una pagina, ho creato la tabella in mysql e una pagina php che prende i dati in ingresso sulla form e li butta nel db.
– Primo problema che ho riscontrato è stato non poter utilizzare il php in word press per cui ho scritto il tutto in una pagina su notepad e l ho caricata via ftp.
ora avrei bisogno di fare in modo di utilizzabile la funzione get_current_user_id() per sapere chi utente ha scritto cosa, ma non riesco in alcun modo a venirne a capo.
Potete darmi una mano, magari linkandomi a qualche esempio funzionante?
Grazie mille a tutti, a priori.
-
18 Ottobre 2016 alle 9:52 #120932annalisalupoPartecipante
Ok sono andata un pochino in avanti da me, ho costruito una tabella, ho scritto uno script js che raccoglie i dati dalla form e li trasferisce al db, ho caricato il tutto all’interno di una cartella esterna a wp e sembra funzionare. Ora vorrei trasferire tutto all ‘interno di wp ho letto di due possibilità :
– o creare un tema figlio,
– o creare un plugin,
entrambe non mi sembrano cose semplici, cmq ho optato per il tema figlio e aggiungere queste miei parti di codice al function.php del tema figlio.
(Anche perché con il plugin mi andava in conflitto con i precedenti.)
La mia domanda è: dopo aver fatto tutto questo lavoro potrò richiamare le funzioni di WordPress dal tema figlio se non sono presenti in quello padre?
-
18 Ottobre 2016 alle 15:17 #120933TittiModeratore
Il tema figlio serve proprio per aggiungere o modificare funzioni senza toccare il tema padre. Dopo che l’avrai fatto, dovrai attivarlo da bacheca. Anche le altre modifiche che hai fatto devi farle qui, e ripristinare il tema padre nella sua versione originale, quello non lo devi modificare altrimenti perderai le modifiche quando lo aggiornerai.
Qui trovi tutto sul tema figlio.
Qui un’altra pagina che potrebbe interessarti.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.