I’ve seen several premium WordPress themes that used different kinds of featured sliders for home page. Is nothing wrong here, it’s a good way of putting important thing first. What it bother me is this silly thing: to add an article to the feature slider you have to use a certain tag. Or worse, a certain category! That’s SILLY and very not user friendly (don’t forget that many editors are very non-technics!).

I developed several WP theme over the last two years and I used to make things in the very same way. Until I had few complains from final clients (sometimes I work for the middle man) that the „tag” way is very user-not-too-friendly. So I had to find another way of doing this.

Custom Fields way

The most easy way of having a way to sort things up is the use of custom fields. So you can add a custom field, named let’s say… featured with the value true. Or something similar. This way you can add some description too, a different title and other goodies.

Custom fields issues

Even if custom fields sounds the right choice, there might be a small problem. Let’s say your awesome blog has only one featured post per month (or even week). As a very busy man, you will probably forget if the custom field was feature or featured. And the value was true, yes or just 1 ? Hmmm…

The solution is…

Custom Fields with Write Panels!

How about this: a very neat panel with a checkbox? That’s all you will need. The whole thing is just one click away!

Is a very easy way of doing the whole thing and very easy to implement.

The whole code is here: Citeste mai departe »

Zoso arată, mai în glumă, mai în serios, cum poți face orice site o aplicatie pe device-ul tău iOS. Dar asta din punctul de vedere al utilizatorului.

Ca owner de site ar fi bine să faci două chestii:

1. Launch Icon

<link rel="apple-touch-icon" href="/touch-icon-iphone.png" />
<link rel="apple-touch-icon" sizes="72x72" href="/touch-icon-ipad.png" />
<link rel="apple-touch-icon" sizes="114x114" href="/touch-icon-iphone4.png" />

Long story short pui o imagine în public_html (sau echivalentul) pentru fiecare format ( 57×57 – default, 72×72 – ipad și 114×114 – iphone 4 / retina display )

Mai multe detalii aici.

2. Browser Bar

<meta name="apple-mobile-web-app-capable" content="yes">

Mai multe detalii aici.

Enjoy!

Link-urile săptămânii 15-21 August

  1. O discuție interesantă despre camelCase vs underscore_case. Personal prefer camelCase pentru CSS/JS și underscore pentru PHP, mai ales că 99% din codul meu PHP este pentru WordPress iar WP face uneori nazuri la funcții numite astfel; am aflat asta după ce m-am scărpinat în creștetul capului mai bine de un sfert de ceas încercând să înțeleg de ce nu merge ceva. Iar funcțiile PHP sunt caseInsEnsiTive!
  2. To write good code, you sometimes have to write bad code.
  3. The Inside Secrets of Logo Development.
  4. JavaScript Programming Style and Your Brain
  5. Sprite3D.js
  6. Box2dweb
  7. spin.js (ca un fel de continuare a discuției de aici)
  8. Te-ai întrebat vreodată cum funcționează un browser?
  9. The perfect web design app… and why it doesn’t exist
windows apple dropbox facebook twitter