How to get absolute path with timthumb in wordpress
I am currently using timthumb.php with my wordpress. It is working fine for absolute path as well as relative path, But my issue is that TimThumb generate my thumbnails/ images with an relative path:
https://www.example.com/wp-content/themes/mxm/scripts/timthumb.php?src=wp-content/uploads/2019/12/freedom.jpg&a=t&w=70&h=70&&zc=1&q=75
But i want absolute path by default :
https://www.example.com/wp-content/themes/mxm/scripts/timthumb.php?src=https://www.example.com/wp-content/uploads/2019/12/freedom.jpg&a=t&w=70&h=70&&zc=1&q=75
Is there any way to change relative path to absolute path for default.I would really appreciate the help.
Leave an answer