Title: SuperGraham's Replies | WordPress.org

---

# SuperGraham

  [  ](https://wordpress.org/support/users/supergraham/)

 *   [Profile](https://wordpress.org/support/users/supergraham/)
 *   [Topics Started](https://wordpress.org/support/users/supergraham/topics/)
 *   [Replies Created](https://wordpress.org/support/users/supergraham/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/supergraham/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/supergraham/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/supergraham/engagements/)
 *   [Favorites](https://wordpress.org/support/users/supergraham/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 39 total)

1 [2](https://wordpress.org/support/users/supergraham/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/supergraham/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/supergraham/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Change Events CPT](https://wordpress.org/support/topic/change-events-cpt/)
 *  Thread Starter [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/change-events-cpt/#post-8209250)
 * IN the dashboard. I’ve changed category/tag slugs, that’s the easy bit, but now
   I want the whole event taxonomy to change. Additionally can I add an extra taxonomy
   so I have Classes and Trips?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Stellar Places] Custom Meta Data](https://wordpress.org/support/topic/custom-meta-data-4/)
 *  Thread Starter [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/custom-meta-data-4/#post-8202585)
 * Thanks a lot – that’s going to help. What I like about your plugin is that it’s
   a CPT, which means it’s much more manageable.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Disable Bookings](https://wordpress.org/support/topic/disable-bookings/)
 *  Thread Starter [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/disable-bookings/#post-8202397)
 * Excellent, thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Stellar Places] Custom Meta Data](https://wordpress.org/support/topic/custom-meta-data-4/)
 *  Thread Starter [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/custom-meta-data-4/#post-8200897)
 * Address fields – yes, I know CSS would work but I was hoping that I could stop
   the fields being registered in the first place. As I can hide the entire fieldset,
   that will do.
    Gallery – yes, I am aware of that, and that’s probably the easiest
   option. I saw the ‘Product Images’ meta-box for WooCommerce products and thought
   it was a standard option, but it appears that it’s custom WooCommerce code so
   not a quick job. I guess the simplest option is to use gallery plugin if the 
   standard WP shortcode doesn’t suffice.
 * Thanks for the help
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Stellar Places] Custom Meta Data](https://wordpress.org/support/topic/custom-meta-data-4/)
 *  Thread Starter [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/custom-meta-data-4/#post-8199284)
 * Actually, I worked that out. Problem solved.
 * So I need to be able to disable the address fields for stlr_place. PLus, how 
   do I add a gallery field to stlr_place?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Stellar Places] Custom Meta Data](https://wordpress.org/support/topic/custom-meta-data-4/)
 *  Thread Starter [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/custom-meta-data-4/#post-8198973)
 * I want to add the fields to new meta boxes not the existing one – I’d actually
   like to hide the existing address fields as dive sites don’t have postal addresses
   🙂 Once I have one field, I’d like to add it to the front end too. If I have 
   one working I would be able to sort the rest.
    I did find some code that adds
   custom fields and meta data but it didn’t work for me, I’m not a developer. If
   all you have is a sample that works, that would work too.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Stellar Places] Changing the slug](https://wordpress.org/support/topic/changing-the-slug/)
 *  [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/changing-the-slug/#post-8197615)
 * I am looking at doing something similar and I want to change Places to Dive Sites.
   Here’s my code that works.
 *     ```
       function custom_map_rewrite($args) {
           $labels = array(
               'name'                  => __( 'Dive Sites', 'dive-center' ),
               'singular_name'         => __( 'Dive Site', 'dive-center' ),
               'menu_name'             => _x( 'Dive Sites', 'Admin menu name', 'dive-center' ),
               'add_new'               => __( 'Add Dive Site', 'dive-center' ),
               'add_new_item'          => __( 'Add New Dive Site', 'dive-center' ),
               'edit'                  => __( 'Edit', 'dive-center' ),
               'edit_item'             => __( 'Edit Dive Site', 'dive-center' ),
               'new_item'              => __( 'New Dive Site', 'dive-center' ),
               'view'                  => __( 'View Dive Site', 'dive-center' ),
               'view_item'             => __( 'View Dive Site', 'dive-center' ),
               'search_items'          => __( 'Search Dive Sites', 'dive-center' ),
               'not_found'             => __( 'No Dive Sites found', 'dive-center' ),
               'not_found_in_trash'    => __( 'No Dive Sites found in trash', 'dive-center' ),
               'parent'                => __( 'Parent Dive Site', 'dive-center' ),
               'featured_image'        => __( 'Dive Site Image', 'dive-center' ),
               'set_featured_image'    => __( 'Set dive site image', 'dive-center' ),
               'remove_featured_image' => __( 'Remove dive site image', 'dive-center' ),
               'use_featured_image'    => __( 'Use as dive site image', 'dive-center' ),
               'insert_into_item'      => __( 'Insert into dive site', 'dive-center' ),
               'uploaded_to_this_item' => __( 'Uploaded to this dive site', 'dive-center' ),
               'filter_items_list'     => __( 'Filter dive sites', 'dive-center' ),
               'items_list_navigation' => __( 'Dive Sites navigation', 'dive-center' ),
               'items_list'            => __( 'Dive Sites list', 'dive-center' ),
               'featured_image'        => __( 'Dive Site Image', 'dive-center' ),
               'set_featured_image'    => __( 'Set dive site image', 'dive-center' ),
               'remove_featured_image' => __( 'Remove dive site image', 'dive-center' ),
               'use_featured_image'    => __( 'Use as dive site image', 'dive-center' ),
               'insert_into_item'      => __( 'Insert into dive site', 'dive-center' ),
               'uploaded_to_this_item' => __( 'Uploaded to this dive site', 'dive-center' ),
               'filter_items_list'     => __( 'Filter dive sites', 'dive-center' ),
               'items_list_navigation' => __( 'Dive Sites navigation', 'dive-center' ),
               'items_list'            => __( 'Dive Sites list', 'dive-center' )
           );
           $args['labels'] = $labels;
       	$args['rewrite']['slug'] = 'divesites';
       	$args['description'] = __( 'This is where you can add new dive sites to your site.', 'dive-center' );
       	return $args;
       }
       add_filter( 'stlr_place-post_type_args', 'custom_map_rewrite' );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Query products by custom product attribute](https://wordpress.org/support/topic/query-products-by-custom-product-attribute/)
 *  Thread Starter [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/query-products-by-custom-product-attribute/#post-7719585)
 * Yes, sure, but I want to keep this separate from variations, which I might use
   later. and I have most of the code I need… I just need the query array to work
   correctly. I’ve tried several options, but none seem to work.
 * _[ Moderator note: code fixed. Please wrap code in the backtick character or 
   [use the code button](http://codex.wordpress.org/Forum_Welcome#Posting_Code).]_
 *     ```
       function ow_url_func() {
       	$args = array (
       		'post_type'  => 'product',
       		'posts_per_page'  => -1,
       		'meta_query' => array(
       		  'course-name' => 'open-water-diver',
       		  'compare' => 'like'
       		),
       	);
       	$query = new WP_Query( $args );
   
       	if ( $query->have_posts() ) :
       		while ( $query->have_posts() ) : $query->the_post();
       			return '<a href="' . get_permalink() . '">' . get_the_title() . '</a>';
       		endwhile;
       	endif;
       }
       add_shortcode( 'owurl', 'ow_url_func' );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] add-to-cart=xxx](https://wordpress.org/support/topic/add-to-cartxxx/)
 *  Thread Starter [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/add-to-cartxxx/#post-7542775)
 * Ah, so the fix I am using used to be code in the core plugin but was removed 
   as it broke some plugins?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] add-to-cart=xxx](https://wordpress.org/support/topic/add-to-cartxxx/)
 *  Thread Starter [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/add-to-cartxxx/#post-7542772)
 * The ‘Add to cart’ hyperlink looks something like this /shop/?add-to-cart=xxx.
   When you click the ‘Add to cart’ link the URL stays in the address bar so if 
   the page is refreshed another item is added to the cart. The fix removes /shop/?
   add-to-cart=xxx from the address bar so stopping the erroneous addition of items
   to the cart.
    The latest site to have the issue is running WP v4.5.3 and WooCommerce
   v2.6.4. We are using a theme called GoodStore v3.0.6 (the latest version) with
   a child theme.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] add-to-cart=xxx](https://wordpress.org/support/topic/add-to-cartxxx/)
 *  Thread Starter [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/add-to-cartxxx/#post-7542770)
 * Sorry for missing you question. I added the the code in the fix above to class-
   wc-form-handler.php. Incidentally, I just had the same problem with a different
   site; the same fix worked.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Server IP & Memory Usage Display] What does this do?](https://wordpress.org/support/topic/what-does-this-do-4/)
 *  Thread Starter [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/what-does-this-do-4/#post-7614999)
 * OK, then it looks like the footer information displayed by Events Espresso is
   overriding Server IP & Memory Usage Display.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] add-to-cart=xxx](https://wordpress.org/support/topic/add-to-cartxxx/)
 *  Thread Starter [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [10 years ago](https://wordpress.org/support/topic/add-to-cartxxx/#post-7542606)
 * We haven’t changed anything but we just noticed this problem. We aren’t developers
   and we certainly don’t do any javascript or AJAX programming.
    I found this fix–
   [https://github.com/woothemes/woocommerce/commit/12a248563715eccb1ca916cf9b35d841aceae4ca](https://github.com/woothemes/woocommerce/commit/12a248563715eccb1ca916cf9b35d841aceae4ca),
   which seems to have resolved the issue, but as for what might have changed, I
   have no idea.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Microsoft Azure Storage for WordPress] Decommission Windows Azure Storage for WordPress plugin](https://wordpress.org/support/topic/decommission-windows-azure-storage-for-wordpress-plugin/)
 *  Thread Starter [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/decommission-windows-azure-storage-for-wordpress-plugin/#post-6479158)
 * You’re welcome.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media File Cleaner] No @2x images](https://wordpress.org/support/topic/no-2x-images/)
 *  Thread Starter [SuperGraham](https://wordpress.org/support/users/supergraham/)
 * (@supergraham)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/no-2x-images/#post-7225753)
 * Ah, worry wrong forum. I looked using FTP, I know what I’m doing. I can see the
   files that I think were created by Retina, for example I can see Air-Freshner-
   Lavender-150×9999.jpg, and lots of others. I don’t have any other retina image
   generators installed.

Viewing 15 replies - 1 through 15 (of 39 total)

1 [2](https://wordpress.org/support/users/supergraham/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/supergraham/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/supergraham/replies/page/2/?output_format=md)