Thanks for your reply John.
I tried your solution but min.price and max. price fields are missing. They appear blank after updating the post.
Also, if I want to add an extra field (for example: term id) and dynamically populate it, how should I edit the function?
Many thanks.