Quantcast
Channel: Zenphoto forum
Viewing all articles
Browse latest Browse all 2917

NaturalEnquirer on "Check for specific tag"

$
0
0

I would like to print some information on the image page only if a certain tag exists for an image. E.g. If an image is tagged as a plant, I'd like to include its endangered status.

After reading several posts, it seems I should be able to do somehing like this:

<?php
if (in_array('Flora',getTags()) {
    echo "Got It";
}
?>

This kills the page. As I don't know PHP, could someone correct what I am doing wrong?


Viewing all articles
Browse latest Browse all 2917

Trending Articles