Support » Plugin: NextGEN Gallery - WordPress Gallery Plugin » [Plugin: NextGEN Gallery] Display sth in lightbox from tags

  • My title isn’t very explicative.
    I’m making a website for a painter who would like to sell some paintings, but not directly through the website.

    For that, she needs to display in the lightbox (and/or on the thumbnail) a little symbol to show if the painting is available or not.

    I had the idea to use the tags, if she puts “available” in the tag of the image it will display the symbol for available, if she puts unavailable, it will display the symbol for unavailable, if she puts nothing, then nothing appears, if she puts both, nothing appears either.

    The problem is that I suck at php, is there a way to retrieve the tag and use it in a PHP function ? (something like “if ‘available’ IN tags & “unavailable” NOT IN tags -> echo <div>….</div>”.

    Can you please help me to achieve that ?

    Here is the website :

Viewing 1 replies (of 1 total)
  • Another way around would be directly when saving the chages after putting the tag, it fills the description field with a code to display like :

    <p style=”text-align:center; font-weight:bold;font-size:20px; color:#08a900″>Disponible
    <span style=”font-weight:normal; font-size:12px;color:#000″>Pour plus d’informations, contactez-moi </span></p>

    And if the field is not empty then it clears the field and fill it with the new code. That way when she will want to manage her site, she will just have to put the tag.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: NextGEN Gallery] Display sth in lightbox from tags’ is closed to new replies.