Articles of theme development

Generate Shortcodes by Taxonomy

Check this code: function slide_group() { register_taxonomy(‘Group’, ‘slides’, array( ‘hierarchical’ => true /*visualizza come le categorie*/, ‘label’ => ‘Group’, ‘query_var’ => true, ‘rewrite’ => true));} add_action(‘init’, ‘slide_group’, 0); function square_slider_template() { // Query Arguments $args = array( ‘post_type’ => ‘slides’, ‘posts_per_page’ => 5 ); // The Query $the_query = new WP_Query( $args ); // Check […]

How to know if a child theme is being used?

I have inherited the job of editing my agency’s webpage. I didn’t create the site, and I am not sure whether the IMW custom theme that is active is a child type theme for 2011, or whether all customizations up to this point have been made to the original theme. Do need to create a […]

Find source of notice / warning / errors efficiently

While debugging plugins or themes I will often come across a notice / warning / error which doesn’t really provide useful debugging info. Notice: get_current_site_name is deprecated since version 3.9.0! Use get_current_site() instead. in /wp-includes/functions.php on line 3835 I understand there is a reference to get_current_site_name somewhere that needs to be changed, but there are […]

Warning/Error in Admin Panel while developing theme

I am developing a theme for my website. As soon as I activated the theme, the following errors/warnings shows up on the top of the admin panel on every page. Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method WPEditorAdmin::removeDefaultEditorMenus() should not be called statically in C:\Users\…\wp-includes\plugin.php on line 406 Strict […]

Built in audio player?

I was certain that WordPress had built in a basic audio player. Am I mistaken. I cant find any evidence of one anywhere, just plugins ?

Does WordPress count as a means to learn web development?

I’m learning to make themes in WordPress, basically with CSS only. I don’t feel like I’m learning actual web development (front end). I don’t see how I can incorporate JS into themes, because it seems that WordPress does all the stuff for you (such as the drop-down navigation menus). I know this is a badly […]

Second menu not showing

I am running WP 3.2.1 on a dedicated server and having a little trouble with a second menu. I have a menu at the top of the page which is working fine but I’ve added a secondary left menu to the left column which is currently showing the top menu despite it being selected in […]

How to remove class attributes from custom menu markup?

Just playing around with adding “custom menu” support to my theme. I’m super excited about it. HOWEVER, Check this out > <ul id=”menu-my-main-menu” class=”menu”> <li id=”menu-item-12″ class=”menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-12″> <a href=”http://localhost/bizsite”>Home</a> </li> </ul> Worst case of “class-itus” I think I’ve ever seen. Is this something “I” did unintentionally or is this […]

How to determine which custom header image is being shown

I’m using a customized version of the Twenty Eleven theme. I want to set a class on the body based on which random header image is displayed. Is there some function that allows me to get the name of the custom header image that will be displayed? My goal is to style the text / […]

Feature Survey – What would you want in a resume theme?

I’ve been toying with the idea of developing a custom resume/portfolio theme for some time … but just haven’t gotten around to it. Lately, though, I’ve fallen in love with a few new site designs and feel that it’s time we had a truly interactive and dynamic theme to power resumes and portfolios with WordPress. […]