How to get absolute path with timthumb in wordpress

Question

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.

0
, , , Rahul Aggarwal 4 years 2020-06-03T03:11:08-05:00 0 Answers 95 views 0

Leave an answer

Browse
Browse