Plugin Author
Ajay
(@ajay)
On the Asian characters, that is definitely good to know. As you can imagine, I’ve never been able to test that.
On the thumbnail, it just uses the default WordPress get_the_post_thumbnail
https://github.com/WebberZone/better-search/blob/92a77cfcee9d448a8d3f628e1b291b8f5bc01c87/better-search.php#L144
Only way to do that now is to edit that line and replace thumbnail to full
I have tried replacing
$output .= ‘<p class=”bsearch_thumb”>’ . get_the_post_thumbnail( $search->ID, ‘thumbnail’ ) . ‘</p>’;
to
$output .= ‘<p class=”bsearch_thumb”>’ . get_the_post_full( $search->ID, ‘thumbnail’ ) . ‘</p>’;
and
$output .= ‘<p class=”bsearch_thumb”>’ . get_the_post_thumbnail( $search->ID, ‘thumbnail‘ ) . ‘</p>’;
to
$output .= ‘<p class=”bsearch_thumb”>’ . get_the_post_full( $search->ID, ‘full‘ ) . ‘</p>’;
Both drop php error message.
Plugin Author
Ajay
(@ajay)
Try this:
$output .= '<p class="bsearch_thumb">' . get_the_post_thumbnail( $search->ID, 'full' ) . '</p>';
https://developer.ww.wp.xz.cn/reference/functions/get_the_post_thumbnail/
Yeap that works 🙂 Thanks!
As mentioned before – it is good search results layout but not really mobile friendly (or the best looking).
Hopefully one day we can get something ready out of the box! Maybe grid look like https://moz.com/blog ?
Best wishes!