18 ott 2010
Con l'avvento di html5 stanno aumentando i benefici per gli sviluppatori frontend che devono migliorare la user experience, ma si scontrando spesso con i limiti dei browser datati.
Un piccolo aiuto viene dalla proposta del forum sull'html5 di utilizzare l'attributo placeholder nei campi di input...» Leggi l'articolo
Tags: html5, jquery
09 set 2010
Facebook ha lanciato da qualche settimana il servizio Luoghi (Places in lingua originale), e con l'ultima versione dell'app per iPhone è possibile geotaggarsi nei luoghi in cui ci si trova. Peccato che questa funzionalità esista solo per gli utenti che si trovano negli Stati Uniti: il controllo viene...» Leggi l'articolo
Tags: facebook, iphone
I was developing a WordPress custom theme for a client and I came across a small problem: the articles should have an introductory text other than the abstract (basic functionality of WP). In practice it was to include some text in a <div> with a specific class, and to avoid the customer having...» Leggi l'articolo
Tags: wordpress
29 lug 2010
Let's say you have a post under a subcategory and you want to show only the top level category that is assigned to the post, you can use this function:
[php]
function GetTopLevelCategory() {
$category = get_the_category();
$parent = $category[0]->category_parent;
while($parent...» Leggi l'articolo
Tags: wordpress