Notes

Short notes on WordPress work and practical implementation

A small archive of technical notes and working observations from real projects.

These posts are not meant to be content for content’s sake — just useful thoughts from hands-on work.

This section collects smaller thoughts that do not belong inside project case studies, but still reflect how I think about WordPress development, implementation, support, and product decisions.

How to change thumbnail image size of WooCommerce cart page

To change thumbnail image size of WooCommerce cart page you need next steps: 1. in function.php create the size you need. if ( function_exists( 'add_image_size' ) ) { add_image_size( 'custom-thumb', 100, 100 ); // 100 wide and 100 high } 2. in cart.php which should be located in your_tneme\woocommerce\cart find $thumbnail = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), […]

Get custom categories with a hierarchy on the custom post type

Get custom categories with a hierarchy on the custom post type can be done in the following way: <?php global $post; $taxonomy = 'ваша таксономия'; $terms = wp_get_post_terms( $post->ID, $taxonomy, array( "fields" => "ids" ) ); if( $terms ) { echo '<ul class="list">'; $terms = trim( implode( ',', (array) $terms ), ' ,' ); wp_list_categories( […]

Special tags for plugin contact form 7

Special Mail Tags for Submissions [_remote_ip] — This tag is replaced by the submitter’s IP address. [_user_agent] — This tag is replaced by the submitter’s user agent (browser) information. [_url] — This tag is replaced by the URL of the page in which the contact form is placed. [_date] — This tag is replaced by […]

Product picture gallery on woocommerce category page

The gallery made on Slick. So, the code is: <?php function woocommerce_archive_gallery() { global $product; $post_ids = $product->get_id(); $attachment_ids = $product->get_gallery_attachment_ids(); echo '<div class="mainimg feature-slider-'; echo $post_ids; echo '">'; echo '<div>'; echo get_the_post_thumbnail( $post->ID, 'shop_single', $attributes ); echo '</div>'; foreach( $attachment_ids as $attachment_id ) { echo '<div>'; echo wp_get_attachment_image( $attachment_id, 'shop_catalog' ); echo '</div>'; } […]

Have a WordPress project to discuss?

Send a short outline — I will review it and suggest a sensible next step.