Risposte nei forum create
-
AutorePost
-
m4rko80Partecipante
Negli archivi categoria vedi /category/catmadre/catfiglia se in impostazioni permalink hai /%category%/%postname%
Ok grazie funziona:)
Ho dovuto poi usare nella pagine get_permnalink() per avere la url corretta.
Dovendo fare una theme da zero sto facendo molto uso del codex:)
m4rko80PartecipanteRipulito tutto e ora funziona, strano… meglio cosà¬.
grazie
m4rko80PartecipanteCiao e grazie per la risposta.
Ho incluso sempre wp_head() nelle pagine, c’e’ tutto diciamo.
Ora provo a ripulire il db, elimino tutto e controllo che puo’ essere perchè ho notato che ogni tanto riesco a vederle.
Altra cosa, in function.php richiamo add_theme_support( ‘post-thumbnails’ ); ma non credo condizioni questo; ho visto che senza non posso settare l’immagine in evidenza in creazione articoli.
Grazie
m4rko80PartecipanteHo trovato alla fine questo plugin che permette di creare i video senza upload.
Mandando via ftp i video li ritrova in automatico dando il path dove vengono storati.
http://wordpress.org/extend/plugins/podpress/
Unica cosa non fa in automatico le thumb, bisogna associarne una o sceglierne una di defautl
m4rko80PartecipanteI video li potrei caricare via ftp ma resterebbe il problema di come collegarmi ai post o creare cmq delle gallerie.
Il fatto e’ che non sarò io a dover creare questi ma un redattore che non è uno sviluppatore web (vagli a spiegare come si usa un ftp, che deve pensare come creare manualmente il link al video o quant’alto)
Fosse per me potrei anche non usare un plugin e farmi un widget con jquery per predere dei video da una cartella che dico io.
Dovrei solo avere l’accortezza di dare un nome alle cartelle e ai fils ma questo non lo può fare chi non ha mai messo mano al codice.
m4rko80PartecipanteCiao, puoi provare a guardare qua http://codex.wordpress.org/Function_Reference/get_post_custom_values e mettere mano al codice/template magari per vedere se vedi i tuoi campi/valori aggiuntivi
9 Febbraio 2012 alle 14:00 in risposta a: Inserimento post e categorie(non mi conteggia i post per categoria) #93070m4rko80PartecipanteEdit:
La causa dovrebbe essere il fatto che mi metta a DB post status come “future” e quindi non pubblicato(non contandolo).
La data è corretta nel database perchè non è futura rispetto la data d’importazione.
Quale potrebbe essere la causa?
Edit:
Se dovesse servire ho risolto anche questa.
Non mi spiego come mai nonostante avendo passato i parametri publish non mi abbia pubblicato direttamente i post
ma ho risolto aggiungendo dopo la creazione del post: wp_publish_post($id_post_creato)
m4rko80PartecipanteCiao, come scritto in questa pagina e negli esempi, ti connetti dove necessario.
Ti connetti e poi selezioni il nome del database.
A questo punto scrivi le tue query e dovresti essere connesso a quel db.
Prova e vedi se non da problemi con l’altra connessione
m4rko80PartecipanteCiao, si e’ possibile, basta che usi dei parametri di connessione per il database che ti serve e scrivi il tuo codice.
WP di suo usa $wpdb che’ e’ l’oggetto per la connessione e variabili varie.
Ho usato questo in una pagina a se, non ho provato dentro ad un ciclo o pagina di wp e quindi dovresti giusto provare a vedere se la connessione non switcha al db esterno in modo permanente(e quindi ti devi riconnettere a Wp una volta che hai finito) o se con l’oggetto $wpdb hai comunque anche la prima.
m4rko80PartecipanteIn pratica la creazione/associazione era corretta.
Ho dovuto aggiungere alla parte di codice:
/* visualizzazione immagine post
$args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => get_the_ID() );
$attachments = get_posts($args);
echo wp_get_attachment_image( $attachments[0]->ID, 'thumbnail', true );
*/
-
AutorePost