Looking at the docs, it says to check if an item is in wishlist using the below code:
{% set compare = craft.wishlist.item(entry.id) %}
{% if compare.inList %}
<a class="" href="{{ compare.addUrl() }}&fields[linkTo]={{ entry.url }}&listTypeHandle=compare">Remove from Compare</a>
{% else %}
<a class="" href="{{ compare.removeUrl() }}&fields[linkTo]={{ entry.url }}&listTypeHandle=compare">Compare</a>
{% endif %}
I want to do the above but tell it what list to look in i.e craft.wishlist.type('compare').item(entry.id)
I cannot see how on earth to do this. I have multiple lists that an entry could be in, so need to specify.
Any help would be very gratefully received!!