Creating a theme options page
I checked out the code that you posted and didn’t find any issues. I then copied it into my theme’s functions.php, it worked for me. Both text areas appear, and data can be saved.
I checked out the code that you posted and didn’t find any issues. I then copied it into my theme’s functions.php, it worked for me. Both text areas appear, and data can be saved.
http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=9 You can use _e(); function to echo your variable and __(); to return your variable. Qtranslate hooks into these functions and translates following your input.
I was having the same problem as the OP, when working in a child theme and copying the sidebar-page.php file to make my own template file (named register.php). Then I noticed in the original template pages, in the body tag there is a class ‘.page-template-sidebar-page-php’ whereas in my new template it was showing up as … Read more
Add this to functions.php: // Pagination function pagination($pages=””, $range = 4) { $showitems = ($range * 2)+1; global $paged; if(empty($paged)) $paged = 1; if($pages == ”) { global $wp_query; $pages = $wp_query->max_num_pages; if(!$pages) { $pages = 1; } } if(1 != $pages) { echo “<div class=\”pagination\”><span>Page “.$paged.” of “.$pages.”</span>”; if($paged > 2 && $paged > … Read more
Drop this inside a plugin: add_filter(‘template’, function($template){ // could be IE if(preg_match(‘/MSIE [1-9]/i’, $_SERVER[‘HTTP_USER_AGENT’])) return ‘your_ie_theme_name’; // other return $template; }); Just so you know, browser detection trough PHP is not really that accurate. There’s a get_browser() function available PHP, not sure if it’s any better though.
You might want to head over to Themeforest.net and browse their wide selection of themes until you find something that’s modular like. Otherwise you could create a very simple theme your self as I assume you’re going to be pulling in data from either RSS or API calls. You could effectively create the exact layout … Read more
WordPress load is complicated process and hard to grasp in full. The very basic overview would be like this. What you should do for starters – think in specifics. A lot of common tasks (adding scripts, using hooks, etc) are standardized technically or conventionally. So go by task – decide what you want to do … Read more
Looks like your “local” “pretty close” and “further away” is only title text on the page and is not actually linking somewhere. You can simply make each venue into a post and under “local” “pretty close” and “further away”, add a link to the post after their description/introductions. This way they retain their category titles … Read more
Neither. Theme options should be stored as theme mods, using get_theme_mod and set_theme_mod. Internally these map on to options, but it is the official way to store theme specific options, that way when you change themes you don’t get clashes, and your settings are preserved for if you ever change back. It’s the classic adage … Read more
The Pinboard theme is in the WordPress theme repository and released under the GPL license, this means that you are free to use and redistribute the theme code. The GPL license gives you…. the freedom to use the software for any purpose, the freedom to change the software to suit your needs, the freedom to … Read more