WordPress.org

Ready to get started?Download WordPress

Forums

How to use if(get_option('')): in WordPress Widgets (2 posts)

  1. crystal.heart
    Member
    Posted 11 months ago #

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

  2. catacaustic
    Member
    Posted 11 months ago #

    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.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.