How to add pagination to my code?

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

Load a different theme for IE less than 9

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.

What’s the order of loading wordpress elements?

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

Posts vs. Pages

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

Should a child theme share the same theme options row as the parent, or should it have it’s own options row?

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

Free themes for commercial use

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