go41

the info you need to know


von Joern
Keine Kommentare

looking for a plugin to switch on or off some options used in different templates I found something finally.I wanted to be able to switch different advertising in my dashboard, let's say a header script, different ads in sidebar, index or single posts.with credits to http://planetozh.com/blog/2009/05/handling-plugins-options-in-wordpress-28-with-register_setting/ I give you here…


von Joern
Keine Kommentare

Die Function wp_trim_words trimmt einen beliebigen Text auf eine bestimmte Zahl von Worten und gibt den gekürzten Text zurück.Um einen benutzerdefinierten custom excerpt zu bekommen, der eine bestimmte Anzahl von Wörtern darstellt, kann man den content oder excerpt seit WordPress 3.3 ganz einfach 'trimmen'.Die alte Function echo string_limit_words($excerpt,25) brachte Ergebnisse…