How to upload thousands of images?
I would use a Plugin like Add from Server. This allows you to import all your images into the media library. You just have to upload them to a folder on your server first.
I would use a Plugin like Add from Server. This allows you to import all your images into the media library. You just have to upload them to a folder on your server first.
You should not edit the WordPress core files! If you have comment_id_fields() in your comments template, like this: <p class=”form-submit”> <input name=”submit” type=”submit” id=”<?php echo esc_attr( $args[‘id_submit’] ); ?>” value=”<?php echo esc_attr( $args[‘label_submit’] ); ?>” /> <?php comment_id_fields( $post_id ); ?> </p> you might use: add_filter(“comment_id_fields”,”my_submit_comment_message”); function my_submit_comment_message($result){ return $result.” <span>(your message will only be … Read more
To override the default “out of stock” message that is being outputted as a <p> tag, copy: wp-content/plugins/woocommerce/templates/single-product/add-to-cart/simple.php to wp-content/themes/yourtheme/woocommerce/single-product/add-to-cart/simple.php See edit Woocommerce template files Open the copied file. On line 17 to 23 you find this code: <?php // Availability $availability = $product->get_availability(); if ($availability[‘availability’]) : echo apply_filters( ‘woocommerce_stock_html’, ‘<p class=”stock ‘ . esc_attr( … Read more
Remove the action: add_action(‘wp_footer’, ‘remove_upme_script’, 0 ); function remove_upme_script() { remove_action(‘wp_footer’, ‘upme_custom_scripts’); }
Here is another simple idea for a case-insensitive shortcode: /** * Make a shortcode case insensitive via the the_content filter * * @param string $content * @return string $content */ function my_case_insensitive_shortcode( $content ) { $sc=”test”; // Edit this shortcode name to your needs $from = ‘[‘. $sc ; $to = $from; if( stristr( $content, … Read more
This is one of those rare times I can proudly say… there isn’t any problem here! The reason the server is returning with 0 is because I was logged in! The wp_ajax_nopriv_example_ajax_request is only for users who are not logged in. After logging out this works fine. So if you are looking to do the … Read more
A look at the documentation or the source is always helpful. I guess, the correct file to refer to would have been product-attributes.php. For getting the product attributes this is available: get_attribute() ; to list them list_attributes() can be used, which makes use of the product-attributes.php template. You can use those and then hook into … Read more
All the information you need you can get from the global variable $wp_scripts: Code: function wpse124227_wp_script_styles_debug_basic() { global $wp_scripts, $wp_styles; echo ‘<pre>’; //Scripts print_r( $wp_scripts ); //Styles //print_r( $wp_styles ); echo ‘</pre>’; } add_filter( ‘wp_head’, ‘wpse124227_wp_script_styles_debug_basic’ ); To get a more specific output you have to define what you are looking for, instead of printing … Read more
The text goes white when the id attribute ($editor_id) contains []. They are not allowed here. Make sure the second argument for wp_editor does not contain [], and the text becomes visible again. I have reported that regression with a test case on ticket #26778. To use brackets in the name attribute, use textarea_name in … Read more
I think an easy way to do this would be to make use of the wordpress template structure, take a look at Codex: Templates and Codex: Template Hierarchy for a general overview. But namely you could use the author templates – Codex: Author Templates – for this, so likely you will adapt the author.php file … Read more