• First of all, this is a great plugin.

    My dilemma is that I’ve got an option in my theme options panel for the person to select if they want to display “excerpt” or “full content” on their live site. I have been digging but can’t figure out the code to display the_excerpt if they select “excerpt” from the drop down or the_content if they select “full content”

    Any help would be appreciated.

    Thanks

    http://wordpress.org/plugins/option-tree/

Viewing 1 replies (of 1 total)
  • Thread Starter Mike Smith (madebyguerrilla)

    (@madebyguerrilla)

    Nevermind, I figured it out. Here’s the code below in case anyone else is needing it.

    <?php if (get_option_tree( 'post_content' ) != 'fullcontent') { ?>
              <?php the_excerpt(); ?>
    <?php } elseif (get_option_tree( 'post_content' ) != 'excerpt') { ?>
              <?php the_content('read more'); ?>
    <?php } ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Need help displaying drop down selections in my theme’ is closed to new replies.