Risposte nei forum create
-
AutorePost
-
mic3000Partecipante
Mi rispondo da solo…per una svista nel mio tema veniva richiamato prima get_sidebar(); del loop principale.
Si può chiudere.
Grazie.
23 Giugno 2011 alle 14:07 in risposta a: Aggiungere custom field dinamicamente tramite jquery #85839mic3000PartecipanteLo so che non siete nella mia testa, per questo ho fatto anche lo screenshot!
Comunque ho creato un custom metabox e all’interno di questo a seconda dell’articolo che sto scrivendo, ho la necessità di aggiungere piu studenti (nome, cognome, telefono).
Non sapendo a priori quanti studenti dovrò inserire, pensavo di aggiungerli tramite jquery!
Qual’è l’approccio corretto?
Grazie
mic3000Partecipantegrazie per la risposta, effettivamente ho scritto sul forum proprio perchè avevo qualche dubbio sulla correttezza del codice!
Le correzioni che ho apportato sono basate su quanto mi hai risposto precedentemente.
function tax_term(){
$myterms = get_terms('category', 'orderby=count&hide_empty=0');
$my_results = array( '-1' => 'Select one term');
foreach ($myterms as $my_res) {
$my_results[$my_res->term_id] = $my_res->name;
}
return $my_results;
}
Preferivo quindi sistemare queste poche righe di codice piuttosto che installare i plugin.
Grazie per i suggerimenti e per il tuo tempo!
mic3000Partecipantezhenya ho provato con il tuo suggerimento ma non cambia nulla.
Con category funziona ma con le mie taxonomy no!
mic3000PartecipanteVorrei sostituire the_content() nel loop con un file che funga tipo da template personalizzato per il mio custom post type, che contenga quindi il mio the_content() per il custom post…Più che un sostituire è un replace…non so se sono stato chiaro.
mic3000Partecipantein questo l’array mi restituisce URL whidth e height, non scelgo se visualizzare miaimg-150×150.jpg o miaimg-50×50.jpg etc..
Forse in questo modo, http://codex.wordpress.org/Function_Reference/the_post_thumbnail
ed utilizzando
the_post_thumbnail(); // without parameter -> Thumbnail
the_post_thumbnail('thumbnail'); // Thumbnail (default 150px x 150px max)
the_post_thumbnail('medium'); // Medium resolution (default 300px x 300px max)
the_post_thumbnail('large'); // Large resolution (default 640px x 640px max)
the_post_thumbnail( array(100,100) ); // Other resolutions
11 Luglio 2010 alle 8:55 in risposta a: WordPress 3.0 : Errore 404 se l’utente non ha nessun articolo. #75046mic3000PartecipanteA me va in errore 404 anche cliccando su “Media”…
mic3000PartecipantePer prima cosa grazie per la risposta.
Per seconda…non l’ho capita!!!
non trovo risposta alla mia domanda,
plugin simile a quello che mi hai suggerito ho trovato anche questo, http://flutter.freshout.us, ma non ho provato ne uno ne l’altro.
mic3000Partecipantesi ma in questo modo devo sempre agire via codice, non posso mettere o togliere il tutto tramite widget…
-
AutorePost