JS
Forum Replies Created
-
Forum: Plugins
In reply to: [WooSwipe WooCommerce Gallery] Use Slick on HomepageWho knows, I’ll keep looking to see if I find anything. Thanks for the plugin! 🙂
Forum: Plugins
In reply to: [WooSwipe WooCommerce Gallery] Use Slick on HomepageHey! Thanks for your response. Nope, actually if I enqueue it with another handle it does appear separately, which means if I use the same handle it is indeed already being loaded, it just doesn’t work for some reason… I tried to see if I had duplicate copies of jQuery or something but everything appears to be normal. I’ll keep looking at it to see if there is a problem with my theme or a plugin. 🙂
Forum: Plugins
In reply to: [WP Store Locator] Autocomplete location fieldCool! 🙂
Forum: Plugins
In reply to: [WP Store Locator] Duplicate entries in locatorI also just found this one on the Manage Stores tab:
Notice: Indirect modification of overloaded property WPSL_Store_Overview::$_args has no effect in {…}/wp-content/plugins/wp-store-locator/admin/class-store-overview.php on line 393
Forum: Plugins
In reply to: [WP Store Locator] Duplicate entries in locatorWell the duplicate entries magically disappeared when I uploaded the site to my testing server. Weird. The php error I get is
Notice: Undefined index: page in […]/wp-content/plugins/wp-store-locator/admin/class-admin.php on line 637
I have debug mode activated.
Thanks for the quick response by the way! Great plugin.
Forum: Plugins
In reply to: [WP Job Manager] Add featured imageOk, I can work with that. Thank you very much!
Here is the code I used to add an image to each listing if it’s any help for anybody. Add to your theme’s functions.php file.
/* Add image to listing */ add_filter( 'submit_job_form_fields', 'frontend_add_featured_image' ); function frontend_add_featured_image( $fields ) { $fields['job']['job_image'] = array( 'label' => __( 'Image', 'job_manager' ), 'type' => 'file', 'required' => true, 'placeholder' => '', 'priority' => 7 ); return $fields; } /* Save input */ add_action( 'job_manager_update_job_data', 'frontend_add_featured_image_save', 10, 2 ); function frontend_add_featured_image_save( $job_id, $values ) { update_post_meta( $job_id, '_job_image', $values['job']['job_image'] ); } /* Add Custom Field to WP Admin Section */ add_filter( 'job_manager_job_listing_data_fields', 'admin_add_job_image_field' ); function admin_add_job_image_field( $fields ) { $fields['_job_image'] = array( 'label' => __( 'Image', 'job_manager' ), 'type' => 'file', 'placeholder' => '', 'description' => '' ); return $fields; }And then just add this wherever you want to display the image:
<img src="<?php echo $post->_job_image; ?>" alt="">Forum: Plugins
In reply to: [WP Job Manager] Add featured imageNo… since I’d like for the organizations using the service to upload their logo. I succesfully added another field and displayed it by adding another custom file field. My question now is if there is any way to limit the size or dimensions of the uploaded image (just like wordpress image upload does).
Great plugin by the way!