Category Archive for "WordPress"

WordPress 6.7 – bulk remove posts from category

Nov 17 2024

An ability to change category for multiple posts was first introduced in WordPress version 2.7. back in May 2019. This feature was requested some 17 years ago, and this initial…

Woocommerce customer email issue : order Notes not showing up

Jan 12 2017

That’s the theory…recently we had an issue that our customers receive Order Note emails without notes implemented. Actually, instead of notes there were shown just two words: “lorem ipsum”? A…

Woocommerce Cart Icon With Count

Dec 13 2016

Use this snippet to add a WooCommerce cart icon with the cart count to your theme. The number of items will be updated automatically with AJAX as items are added…

WooCommerce snippets in custom theme development

Oct 03 2016

WooCommerce snippets in custom theme development Here is the list of woocommerce snippets that you may find useful during WordPress theme development:  

Remove the responsive image support in WordPress 4.4

Feb 25 2016

After updating to 4.4. many of us have a problem with the new srcset attribute. The simplest and cleanest way to remove the responsive image support is simply to add…

WordPress: Check if there are previous posts before displaying link

Nov 22 2015

Here is an if() statement that could checks if there are any previous or next posts, and only prints it out if there are:   <?php if (get_next_post_link() && get_previous_post_link())…

Add class to WP next and previous post link

Nov 22 2015

Pretty basic question… next_post_link() displays a link to the next post. It’s first paramter allows you to wrap the link in markup, like this: next_post_link(‘%link’); But how do I actually…

Remove item from Dashboard menu

Jun 24 2015

WordPress Admin Area Customization You can use this snippet to remove the item from WordPress admin dashboard…just replace file URL to match your case: function remove_acf_menu() {         remove_menu_page(‘edit.php?post_type=acf’);…

WordPress – change existing featured image size in child theme

Jun 22 2015

The simplest way to create your own sizes inside your child theme is to remove using “remove_theme_support” and set it again “add_theme_support” like following: function remove_featured_images_from_child_theme() { // This will…

WordPress- disable plugin update

Jun 22 2015

Add this code in your plugin root file. It will prevent plugin updates notifications.   add_filter(‘site_transient_update_plugins’, ‘remove_update_notification’); function remove_update_notification($value) {      unset($value->response[ plugin_basename(__FILE__) ]);      return $value; }   Other…