one page wordpress theme

I understand now! You just need to figure a way to programmatically generate sections of code with anchors and have your main menu link to those anchors! <?php $args = array( ‘post_type’ => array( ‘page’ ), ‘post_status’ => array( ‘publish’ ), ‘orderby’ => ‘menu_order’, ‘order’ => ‘asc’ ); query_posts( $args ); if (have_posts()) : while … Read more

List of categories instead of dropdown menu selector in admin options

In that case you can get the list of categories and for each category create a text field something like this: $categories = get_categories(‘hide_empty=0&orderby=name’); foreach ($categories as $cat){ $options[] = array( “name” => $cat->name, “desc” => “Select a color for “.$cat->name.” category”, “id” => $shortname.”_cat_”.$cat->term_id, “type” => “text”, “std” => “”); }

Twenty Ten theme – how to put a different header banner on every page

find and delete the custom header images under dashboard -> media -> library that is referring to header.php in the folder /wp-content/themes/twentyten/ don’t edit wp-blog-header.php (this is a core file which should never be edited) nor header.php of your theme; simply set a ‘featured image’ for each page where you want a different header image; … Read more

Blackberry mobile theme redirection

I’ve been using Chris Schuld’s Browser Class with very good results detecting a variety of data from the browser agent. Example of use require_once(‘lib/Browser.php’); $browser_check = new Browser(); $browser = $browser_check->getBrowser(); function browser_check($what) { global $browser; switch ($what) { case ‘ie’: if ($browser==Browser::BROWSER_IE) return true; else return false; break; case ‘bb’: if ($browser==Browser::BROWSER_BLACKBERRY) return true; … Read more

Identify current wordpress theme

In your browser select “View page source” search for style.css you’ll find something like this: http://domain.com/wp-content/themes/ThemeName/style.css there you already have the theme name, and if you open the URL you also gonna see at the beginning of the stylesheet a header with all the information about the theme and its author