WP Theme Options - Disable/Readonly option if you disabled certain option (2 posts)

  1. Stay Frosty
    Posted 5 years ago #

    Hello All!

    I just want to share this, I have been working on a WordPress Theme Framework and I know my stuffs like specially the PHP.

    I just can't figure out how to add a "disable/readonly" on an input field if say you disabled a certain option.


    I have these two options:

    1. Featured Article
    2. Featured Article Category Name

    Now, if say you disabled the Featured Article, what I want to achieve is to make the Featured Article Category Name disabled.

  2. Stay Frosty
    Posted 5 years ago #

    I fixed it,

    <?php if ( get_settings( $panadolPressValues['disable_parent'] ) ){} else if ( $panadolPressValues['disable'] == true ) { echo ' disabled'; } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic