luisrivera
Forum Replies Created
-
Forum: Hacks
In reply to: [hack] crop custom thumbnail sizes=(
is not working…Warning: Invalid argument supplied for foreach() in /../…/…/functions.php on line 116
// Hook into the 'intermediate_image_sizes' filter used by image-edit.php. // This adds the custom sizes into the array of sizes it uses when editing/saving images. add_filter( 'intermediate_image_sizes', 'my_add_image_sizes' ); function my_add_image_sizes( $sizes ){ global $my_image_sizes; //this is the line giving the error foreach ( $my_image_sizes as $my_image_size ){ $sizes[] = $my_image_size['name']; } return $sizes; }
Forum: Plugins
In reply to: [CSV Importer] [Plugin: CSV Importer] Custom Taxonomies Import not workingforget it guy’s… this is what happend when we dont read the manuals. ??
they say:
__Hierarchical taxonomies__
The syntax for hierarchical taxonomies is more complicated. Each hierarchical taxonomy field is a tiny two-column CSV file, where the order of columns matters. The first column contains the name of the parent term and the second column contains the name of the child term. Top level terms have to be preceded either by an empty string or a 0 (zero).
Sample
custom-taxonomies.csv
file included with the plugin illustrates custom taxonomy support.Forum: Plugins
In reply to: [CSV Importer] [Plugin: CSV Importer] Custom Taxonomies Import not workinghi guy’s
Im having the same trouble but its not working for me.I read in another post that CSV Importer doesnt work with Custom Taxonomies if they are Herarchical.
Is it true?
Because what i did isadd_action('init', 'create_producto'); function create_producto() { $producto_args = array( 'label' => __('Producto'), 'singular_label' => __('Producto'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => true, 'supports' => array('title', 'editor', 'thumbnail') ); register_post_type('producto',$producto_args); }
and
register_taxonomy("catalog", array("producto"), array("hierarchical" => true, "label" => "Catalogs", "singular_label" => "Catalog", "rewrite" => true));
and my .csv file goes like this
csv_post_title,csv_post_post,csv_post_typ,csv_ctax_catalog
If that is the case and is not that im doing something wrong… can somebody let me know if there is another CSV Import Plugin around that works better?
Thx everybody