Articles of untagged

WordPress widget args – classname?

Could someone explain to me what “classname” in the $widget_ops array means when you’re creating a custom widget? It doesn’t seem to have any relevance. I’ve searched both the source and the db and can’t find any instance of it. $widget_ops = array( ‘classname’ => ‘example’, ‘description’ => ‘widget description ‘ ); $control_ops = array( […]

WordPress on localhost still points to the live site

I have tried copying my wordpress site to my PC for editing offline using WAMP. I followed the following tutorial word for word. How to create a local copy of a wordpress site I have placed my files in C:\wamp\www\wordpress I saw somewhere about adding the following to the wp-config.php but it still points to […]

Unable to get WordPress auto update working on Ubuntu 12.04

I’m getting a tiny bit fed up with having to chown 777 my entire WordPress folder in order to auto update a plugin, and then set the permissions back again. I’ve looked around for fixes now, but no fix I try seems to work. I’m on an Amazon EC2 instance running Ubuntu 12.04. So, the […]

Tag list & tag index for custom post type

WordPress issue: I have a custom post type: custom-post-type. register_post_type( ‘custom-post-type’, array( ‘label’ => __(‘Custom Post Type’), ‘public’ => true, ‘show_ui’ => true, ‘_builtin’ => false, // It’s a custom post type, not built in ‘_edit_link’ => ‘post.php?post=%d’, ‘capability_type’ => ‘post’, ‘hierarchical’ => false, ‘rewrite’ => array(“slug” => “custom-posts”), // Permalinks ‘query_var’ => “custom-post-type”, ‘menu_position’ […]