I have some option in some of my wordpress tags and I'm trying to determine (in single.php
) if one of those tags has options and if one of them (options) is equal to a specific value.
This is what I got so far but I'm a bit lost on how to move forward:
// get all post tags
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
// get the tags ID
$tag_id = $tag->term_id;
// putt all the ID's on an array
$all_tags_id = array($tag_id . ', ');
... and I don't know how to go any further from here.
I guess I first need to isolate the ones that have options and then see if any of them has the option that I need empty
OR not?
Help needed...
tags
have specific options. See this here to understand.