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
- How to correctly add Javascript in functions.php
- Why would a GET variable one one page of a site cause a 404 error when a GET variable works on another page of a site?
- How to remove “out of stock” variation options from size dropdown in woocommerce?
- Multiple pages on one with different HTML
- Woocommerce: How to override core functions in functions.php?
- Add custom HTML to posts page
- Get WooCommerce shipping methods programmatically
- Add a custom text field to WooCommerce admin product data “Variations”
- Minify HTML, CSS, JS with PHPWee?
- Add attribute / custom attribute to product in woocommerce
- How to only show page id as body class?
- Help with some php math in WordPress
- How do I display a user’s previous orders as a select box option on a product?
- Adding nofollow to a PHP generated Nav
- Automated Cart Update With Alert Box Each Time
- Show prices with tax in Woocommerce Mini Cart [closed]
- Problem with custom plugin using AJAX to pull info from php file
- Reload part of checkout on changed shipping method
- Woocommerce related product text
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- Function works when I don’t login to WordPress but when I login then it doesn’t work
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- Input data from email form not going to JSON file
- Different post styles depending on category
- Show latest posts in a plain HTML website custom widget [closed]
- Hide HTML element (by class or ID) with PHP
- Add product to cart for user – WC()->cart->add_to_cart [closed]
- Seo Friendly Filter URLs
- PHP contact form not redirecting [closed]
- How to Schedule Cronjobs for start of every month and year
- how can i add class or span tag at sprintf?
- Handling PHP/HTML inside the output of a shortcode function
- Display attribute on shop page after the title
- Illegal string offset error in wordpress theme options textarea
- WordPress WP_Query without query GET parameters
- Where to copy woocommerce files to in my custom theme to avoid editing the core plugin?
- Need help removing […] after excerpt
- Initial offset of number of posts in home page on the posts page
- Shortcode displaying at the top of the page [duplicate]
- Custom reduce stock code affecting date_modified – How to bypass?
- Time Delay a URL Redirect for Specific Page
- Cascading dropdown select search based on Parent Page & Child Page
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Background image no longer fits to screen now that project is in php files
- WooCommerce Query Product Titles
- How to add a shortcode which runs a .php file for the current post
- Variant Item SKU as Product Code
- Run a sql (update) after 12 hours after the user login. Woocommerce users
- I can’t go to the page archive-{post_type}.php
- How can I change the background color of divs dynamically (depending on an order-status in woocommerce)?
- Add a new view on the Woocommerce account page
- How to get content on a blank basket/cart page in a custom theme with woocommerce
- WooCommerce REST API AJAX Auth – 401 response
- Looping through and combining calls to Woocommerce REST API
- How to import woocommerce custom fields data into another site?
- HTML Formatting “single_term_title()”?
- How to center all text body in single.php at once?
- Adding a widget under an ‘Add to Cart’ button through a PHP snippet
- Woocommerce Related Product by 2 taxonomy
- AMP version of e-commerce without plugin
- Creating Log-In Page for backend server
- Woocommerce variable products are being added to the card on the homepage (ajax)
- user update profile for custom code
- Vertical Menu for one page only
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- Show post/page into div using function
- Display text of price (minus 20%) on every product page in a sentence.
- Getting the date_diff function return the difference in days
- Use WP_Query Data In Cookie
- nested divs, classes for a grid in loop [duplicate]
- featured post as div background
- how to manipulate HTML parameters using PHP conditions
- How to add custom checkout field in user details mail template
- Php echo into tag
- Add specific phrase after every product title including the discounted price? [closed]
- How to edit homepage in WordPress?
- Setting WooCommerce currency programmatically
- WP_Query not returning results
- How do I link the side images?
- WooCommerce – Show ‘Sales’ badge on variable products where only some variations have sales price [closed]
- Add multiple HTML attributes to an Elementor button
- Remove Woocommerce product from cart with ajax/fetch
- Automatically change insurance quantity based on cart total [closed]
- Why does WordPress not send the user the email to add a password?
- WooCommerce Modal Fly cart on add to cart – With AJAX
- Hide ‘Downloadable’ and ‘Virtual’ checkbox options from Woocommerce Variations?