Fatal error with jigoshop and woocommerce

Woocommerce is a fork (modified copy) of Jigoshop. You can run just one of those plugins, not both. The error is a result of declaring the same function declared two times, because this function was not changed in Woocommerce. The pages installed by Jigoshop were probably removed during the uninstall process. You will either find … Read more

How to call uninstall.php?

Uninstall hook and uninstall.php file are two alternate ways to implement uninstall functionality, they are independent of each other. When uninstall_plugin() is called it checks for uninstall.php or hook (in this order). So if you are using file approach there is nothing special you need to do to call it. WordPress looks it’s up by … Read more

WooCommerce product permalinks

Add a filter for post_type_link, and change its value in a callback function. Sample code, not tested: add_filter( ‘post_type_link’, ‘simple_woo_urls’, 10, 2 ); function simple_woo_urls( $url, $post ) { if ( ‘product’ === $post->post_type ) return home_url( $post->post_name ); return $url; }

How to use Repeater field of advance custom field

Here you will find all you need to know. http://www.advancedcustomfields.com/resources/field-types/repeater/ One example <?php if(get_field(‘repeater_field_name’)): ?> <ul> <?php while(has_sub_field(‘repeater_field_name’)): ?> <li>sub_field_1 = <?php the_sub_field(‘sub_field_1’); ?>, sub_field_2 = <?php the_sub_field(‘sub_field_2’); ?>, etc</li> <?php endwhile; ?> </ul> <?php endif; ?>