We have a Random post widget that shows a thumbnail of the post, but it isnt working with the WProcket CDN rewrite function.
WP rocket have provided instructions here for a fix [url removed, login to view] if the widget doesnt use the standard thumbnail code generated by wordpress.
The code in question is
$html .= '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">';
if ( $args['thumbnail_custom'] ) :
$html .= '<img class="arpw-thumbnail align' . esc_attr( $args['thumbnail_align'] ) . '" src="' . esc_url( $image ) . '" alt="' . esc_attr( get_the_title() ) . '">';
$html .= get_the_post_thumbnail( get_the_ID(), $args['thumbnail_size'], array( 'alt' => esc_attr( get_the_title() ), 'class' => 'arpw-thumbnail align' . esc_attr( $args['thumbnail_align'] ) ) );
$html .= '</a>';
We need insert the correct wrapping code around the image generation, which should fix the issue.
Very simple fix, i just don't want to mess the syntax up, will be a very quick job, don't bid if its going to take you any longer then an hour please.
24 freelancer đang chào giá trung bình $8/giờ cho công việc này
Hi I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction so lets start Thanks
My name is Andrei and I'm from Romania, Europe. I will help you fixing this widget and make sure everything works. After the project is done, you can always count on my help if is needed.