Skip to:
Content
Pages
Categories
Search
Top
Bottom

if group meta = example, show this ?

  • @nit3watch

    Participant

    Im trying to build a plugin that displays a picture/s in a group header depending on the option selected on group creating, saved in group meta. What I have so far is selecting a radio group, say 2 options:

    Option ‘one’ displays image ‘1.png’
    Option ‘two’ displays images ‘1.png’ and image ‘2.png’

    so ‘one’ or ‘two’ would be saved to the group meta, how would I say:

    if (the current group’s meta equals ‘one’) { ..in terms of php?

    so I could then add if else statements

Viewing 1 replies (of 1 total)
  • @nit3watch

    Participant

    Here’s the code for the form and saving the data, its rough as I uploaded it earlier today so havnt changed to to a radio group or anything yet but just so you can see what the table is called and stuff..

    http://pastebin.com/m8w7SwiR

Viewing 1 replies (of 1 total)
  • The topic ‘if group meta = example, show this ?’ is closed to new replies.
Skip to toolbar