try this..
$images .= '<a href="' . get_permalink( $post->ID ) . '">';
if ( has_post_thumbnail() ) {
$images .= get_the_post_thumbnail( $post->ID, 'shop_catalog' );
}
$images .= '</a>';
Related Posts:
- How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]
- Function returns text instead of html [closed]
- How to remove coupon dropdown feature
- Add html link in functions.php files of the theme
- How to rename woocommerce-billing-fields
- PHP function for horizontal Woocommerce thumbnails and badges
- Remove span tags from WooCommerce Downloads page
- Use Search Term in html link and redirect
- Custom woocommerce payment gateway – Form
- sessionStorage saves input value in browser but it is not loaded in the form field
- Woocommerce custom attributes list help
- WooCommerce multiple custom fields code
- WooCommerce – Print Processing orders [closed]
- How to create a container in php then customise it in CSS
- Endpoint exists and shows up in My Account dashboard. Need to add endpoint to My Account DROPDOWN menu in Porto theme
- Woocommerce get selected shipping zone id for the current user
- WordPress Ajax always returns a 404 error
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- How to show order data by multiple ID?
- WordPress Wysiwyg Content not being displayed
- Remove General Tab and Plugin Tab in Settings in Woocommerce
- WooCommerce – Display variation custom field value [closed]
- Woocommerce HTML email option unavailable
- How to trash multiple post/product programmatically
- OrderItem get_total() returns lower value than $order_item->get_product()->get_price() * quantity
- Missing sidebar parameter “fix” – before_content
- Setting up 2 SMTP accounts: 1 for wordpress and 1 for woocommerce
- How to get the POST TITLE using the POST ID?
- WooCommerce – Reset quantity input field when variation changes
- Custom Text in WooCommerce Order Processing Email Based on Products
- Automatically remove a canceled order in Woocommerce
- Load a page into a div with Ajax
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Different Minimum Order Amounts based on Shipping Zone [closed]
- Displaying custom taxonomy on WooCommerce product page
- Change “add to cart” button color based on Woocommerce product category [closed]
- Add to cart function not working for first product when cart is empty [closed]
- Woocommerce : Can’t get product info in loop
- Is this spyware on my site or a real Java update?
- Search WordPress using static html page
- WordPress plug-in for dynamic download link?
- How to remove the h6 tag for the entry-category Class
- Override user-edit.php to design own profile page
- Can a plugin redirect product page based on IF condition?
- woocommerce related product title length
- Highlight the links without using dropdown
- How to turn each phone number within the $content to a telephone link?
- Creating custom page template from existing PHP site
- wordpress site – using custom database and PHP
- Remove in post content
- Woocommerce custom Plugin in wordpress [closed]
- Adding attribute to the post.php form tag in wp-admin
- Using php inside javascript [closed]
- How to separate product payment and shipping payment in WooCommerce checkout? [closed]
- Output product category link from WP_Query
- How to get woocommerce orders with get_posts method in a shortcode
- Display WordPress search results based on the selected Sub-Category
- Variation prices breakdown only for single product page
- How do I call a value from the datase using ajax
- Woocommerce disable order item link (backend) [closed]
- Set all WooCommerce Products to Simple, Virtual & Downloadable
- Fatal error login WordPress [duplicate]
- Undefined array key 0 wp-includes/capabilities.php on line 76
- How to use wp_ajax_set_post_thumbnail?
- Best way to use variables in multiple functions?
- Passing a value from an input field to a php function in WordPress?
- Display all categories including sub categories under a list ul
- Comparison operator != not working in field [closed]
- How do I programmatically add ‘reviews_allowed’ to WooCommerce product?
- Get product price in a different currency using WooCommerce Currency Switcher
- Problem with my Login Plugin
- How to return html as a string from php for WordPress
- Show subcategory name selected in specific category woocoommerce
- How to override WooCommerce Order Item Meta with data from Cart?
- Unable to insert current username into custom table through html form
- Add custom attribute to product’s HTML to woocommerce cart page
- Change WooCommerce template for PDF – access to custom field
- How can i style “echo apply_filters”
- Get all woocommerce product names with price and show using core php
- Add custom ID attribute to all woocommerce products on archive pages
- How to properly create multiple conditions to redirect users roles to different pages
- Splitting table data to pages with numbers
- How to detect if a revision was made by woocommerce or wordpress?
- How do I prevent a folder from reappearing in my home directory?
- Trying to customize wordpress drop down categories
- How to set up and use a custom upload directory for post type ‘product’
- How to get the rating value of each comment
- Parse error: syntax error, unexpected ‘echo’ (T_ECHO) in C:\xampp\htdocs\AttendanceSystem\resources\php\method.php on line 250 [closed]
- Load Meta box value into div AJAX [duplicate]
- Exclude specific product tags from related products in WooCommerce 3+ [closed]
- WooCommerce Orders pagination
- Product Category Page in Full Width
- Is there a better way to output HTML as a shortcode?
- After declaring woocommerce theme support products are no longer displayed
- Replace the image of a product with its video in the shop page
- Find owner of coupon
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- How to modify default tags in wp_head()
- Retrive the value of the Active variation of the product and then link it to the “read more” to dynamically change
- #038 & wordpress Help