SuperGraham
Forum Replies Created
-
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Change Events CPTIN 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
In reply to: [Stellar Places] Custom Meta DataThanks 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
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Disable BookingsExcellent, thanks.
Forum: Plugins
In reply to: [Stellar Places] Custom Meta DataAddress 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
In reply to: [Stellar Places] Custom Meta DataActually, 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
In reply to: [Stellar Places] Custom Meta DataI 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
In reply to: [Stellar Places] Changing the slugI 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
In reply to: [WooCommerce] Query products by custom product attributeYes, 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. ]
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
In reply to: [WooCommerce] add-to-cart=xxxAh, so the fix I am using used to be code in the core plugin but was removed as it broke some plugins?
Forum: Plugins
In reply to: [WooCommerce] add-to-cart=xxxThe ‘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
In reply to: [WooCommerce] add-to-cart=xxxSorry 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
In reply to: [Server IP & Memory Usage Display] What does this do?OK, then it looks like the footer information displayed by Events Espresso is overriding Server IP & Memory Usage Display.
Forum: Plugins
In reply to: [WooCommerce] add-to-cart=xxxWe 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, which seems to have resolved the issue, but as for what might have changed, I have no idea.You’re welcome.
Forum: Plugins
In reply to: [Media File Cleaner] No @2x imagesAh, 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.