I have a meta key called Affiliate and a value that is the same over several posts. I can't get the query to return anything as expected. the loop needs to be dynamic for each page so I'm getting the value of that meta key (custom field) and saving it as $affiliate. I'm then plugging it into my query but i can't get it to work. Does this still work? What am i doing wrong? many thanks
It should be noted that i'm successfully getting my affiliate value and echoing it out on the page. it is the query that isn't working.