Support » Plugins » Hacks » How to use if(get_option('')): in WordPress Widgets

  • I just create a wordpress widget . But I have one question. How can I us<?php if(get_option(‘myoption’)):?> in wordPress custom widgets ?

Viewing 1 replies (of 1 total)
  • catacaustic

    (@catacaustic)

    very awesome

    How do you want to use it? The syntax that you’ve got there is correct and will work, but it may not give you the results that you expect it to. Give us some more info about what you actually want to check with the if() condition and we’ll be able to give you more idea on what’s going to work for your case.

Viewing 1 replies (of 1 total)
  • The topic ‘How to use if(get_option('')): in WordPress Widgets’ is closed to new replies.