Unfortunately, I think we both need to be familiar with not only your website code, but PHP , HTML, web programming, Plogger code, and your Wordpress environment to make this work in the code example you submitted.
Nevertheless, I'm intrigued by your choice of variable associative array names like $$value['id']. Could you please comment about this choice?
I raised the question because all php variables begin with a $ sign, and most web programming errors are due to typos. I've never seen a variable name like $$value['id'], and thought that it may be a typo. Let's hope it's something as easy as dropping a $ ( at which I am an expert ).