Listing category

If you know the depth that you want you can add a depth parameter to $args $args = array( ‘orderby’ => ‘id’, ‘show_count’ => ‘0’, ‘child_of’ => $this_category->term_id, ‘use_desc_for_title’ => ‘0’, ‘taxonomy’ => ‘product_cat’, ‘hide_empty’ => ‘0’, ‘child_of’ => $this_category->term_id, ‘depth’ => 2 ); wp_list_categories($args); Experiment with that number if it isn’t what you want. … Read more

Textarea type on one field custom add_meta_box?

i got the solutions, array( ‘shortdesc’, ‘shortdesc’ , ‘textarea’), and add new function for text_area: function text_area ( $args ) { global $post; // adjust data $args[2] = get_post_meta($post->ID, $args[0], true); $args[1] = __($args[1], ‘fp’ ); $label_format=”<label for=”%1$s”>%2$s</label><br />” . ‘<textarea style=”width: 95%%;” name=”%1$s”>%3$s</textarea><br /><br />’; return vsprintf( $label_format, $args ); }

Twenty-Eleven Theme and Automatic Picture Resizing

Here is a quick function to remove the width and height attributes from images which should resolve your issue. function _remove_img_dimensions_WPA84292($html) { $html = preg_replace(‘/(width|height)=[“\’]\d*[“\’]\s?/’, “”, $html); return $html; } //for new images add_filter(‘post_thumbnail_html’, ‘_remove_img_dimensions_WPA84292’, 10); add_filter( ‘image_send_to_editor’, ‘_remove_img_dimensions_WPA84292’, 10 ); //for images already inserted into posts add_filter(‘the_content’, ‘_remove_img_dimensions_WPA84292’, 10);