Per creare una lista HTML su due colonne esiste una regola CSS3, indicata qui http://www.w3schools.com/cssref/css3_pr_columns.asp ul { columns: 2; -webkit-columns: 2; -mox-columns: 2; } Purtroppo su IE non funziona, ma può essere usato un JavaScript che lo simula: http://jsfiddle.net/HP85j/19/ HTML: […]
Continue reading »Come attivare il paging su un Loop custom
<?php $args = array( ‘post_type’ => ‘diconodinoi’, ‘orderby’ => ‘meta_value’, ‘meta_key’ => ‘wpcf-data’, ‘order’ => ‘DESC’, ‘showposts’ => 3, ‘paged’ => 1 ); $old_wpq = $wp_query; $wp_query = null; $wp_query = new WP_Query( $args ); while ($wp_query->have_posts()): ?> <?php $wp_query->the_post() […]
Continue reading »Splittare una pagina in più pagine
Se abbiamo una pagina lunga in HTML, ad es. un manuale, possiamo usarla come pagina di WordPress e farla splittare automaticamente in più sottopagine, contenenti i link “pagina precedente” e “pagina successiva”. E’ sufficiente inserire nei punti dei break tra […]
Continue reading »Come ordinare una WP_Query in base ad un campo personalizzato
WP_Query() può essere usata per effettuare una query personalizzata per estrarre informazioni e creare un loop custom, ed accetta come argomento un array di argomenti. Dovendo ordinare i risultati della query in base ad un campo personalizzato, ad es. il […]
Continue reading »Installazione di WordPress: 5 minuti!
Per installare WordPress su uno spazio di hosting appena acquistato, serve: username e password FTP server, nome database, username e password per un database MySQL Per creare il database dovrete seguire le istruzioni che ciascun provider vi dà, oppure farvi […]
Continue reading »Impostare policyd per singolo utente
Su policy list, azione ADD, nome simbolico e priorità 100. Ritornare alle policy, modifica e attivare (disable = no) Riselezionare, andare su members, aggiungere un member con source = ‘email@xxxx’, destinazione ‘ANY’. Modificare i policy members a disable = no. […]
Continue reading »Width: 100% su iPad è più stretta del dovuto
E’ un problema su Safari. La viewport di default di Safari è 980px, se il layout è più largo gli elementi impostati a 100% si ridimensionano a 980px, non alla larghezza del layout originale, ad esempio tagliando il background. Per […]
Continue reading »Fotogallery NextGen con tutte le fotogallery del sito (uso dei tag)
Utilizzando la funzionalità dei tag di NextGen è possibile inserire una fotogallery che contenga le foto di tutte le gallerie inserite. Lo shortcode è: [nggtags] Con la stessa funzionalità è possibile raggruppare in gallerie le foto a seconda dei tag […]
Continue reading »Come preimpostare l'immagine di thumbnail per la condivisione di una pagina su Facebook
Quando si condivide il link una pagina su Facebook, di default viene presa come immagine la prima immagine disponibile nella pagina stessa. Non sempre questo è corretto; Facebook ci dà modo di inserire una immagine ad hoc. Per farlo, si […]
Continue reading »Crop automatico delle immagini in evidenza in WordPress
Anche usando un sistema di gallery quale NextGen, le immagini in evidenza (post thumbnail) restano fuori, e andrebbero inserite già ritagliate correttamente nella proporzione giusta. Per poter modificare le immagini in evidenza, esiste il plugin Post Thumbnail Editor, che permette […]
Continue reading »