Articles in ‘Wordpress’

WP > Show DB info in Admin Dashboard

Tuesday, March 31st, 2009

add following lines to dashboard.php

	/* gz show database */
        GLOBAL $table_prefix;
	echo "<p><b>Database:</b> ".DB_USER." with prefix \"".$table_prefix."\" on ".DB_HOST."</p>";

WP > Static Page and latest Posts

Friday, February 29th, 2008
I wanted to have a static home page top area and the latest posts below. Somehow, Wordpress does not seem to have that by default. So here is my workaround: I created a new page template in my theme folder, mytemplate.php (see code below).
[...more...]