Viewing 14 replies - 1 through 14 (of 14 total)
  • In your template, where you want to show the text, use:

    echo ot_get_option(“id_of_textbox”,”Here is default text”);

    Thread Starter Anand Agrawal

    (@ananddesigner)

    thanks. can we use any text editor instead of text area for custom formatting?

    Yes, you can use text editor (Tinymce) for custom formatting fields by using textarea type (not textarea-simple). But if you want to use text editor in metabox you need some addition codes.

    Thread Starter Anand Agrawal

    (@ananddesigner)

    thanks, actually i am a web designer not php coder.so can u help me? can you give me that additional code for text editor.

    thanks in advance.

    It not easy to help you here because it is require edit more places in some files both js and php. Addition it base on your option settings. So I don’t know exactly where to edit in your code.

    Thread Starter Anand Agrawal

    (@ananddesigner)

    thanks.i will do something about this later.i have a question…
    can i use my own content slider with create dynamic slide and if yes then tell me how is it possible…?
    help?

    I am using the Daily Press theme with the Option Tree plugin and my home page is blank. What am I doing wrong? I see that I am supposed to set up the categories, but I just want it to show my recent blog posts. How do I do this? https://sccba-news.com

    OptionTree doesn’t help you show data. It just help you store settings for your site. OptionTree is create for coder. Your code (in theme) must read OptionTree settings and generate/show data (post/page) base on settings.

    Plugin Author Derek Herman

    (@valendesigns)

    @htvu you’re awesome! I see you more than anyone in here answering questions. Thank you!

    @ananddesigner The documentation in OptionTree should be enough to get you started. Have you read it? If you have, and you still feel puzzled on where to start, my suggestion would be to seek a developer that can help with your project.

    @hiredgunsdesign Please start your own topic if you have questions. You’ll have a better chance at getting an answer.

    @derek you’re welcome. I l love this plugin and I’m using it for my new theme in ThemeForest. I made some changes on the plugin and I just want give a little help.

    Thread Starter Anand Agrawal

    (@ananddesigner)

    hi, first i have to say..this plugin is awesome..
    i have a problem..i am using a slider. i am able to use slider loop.
    <?php
    if ( function_exists( ‘get_option_tree’ ) ) {
    $slides = get_option_tree( ‘intro_page_slider’, $option_tree, false, true, -1 );
    foreach( $slides as $slide ) {
    echo ‘

    Plugin Author Derek Herman

    (@valendesigns)

    Please use ot_get_option( 'intro_page_slider' ); instead, the other function was deprecated.

    if ( function_exists( 'ot_get_option' ) && $slides = ot_get_option( 'intro_page_slider' ) ) {
    
      $content = '';
    
      foreach( $slides as $slide ) {
    
        if ( isset( $slide['image'] ) && isset( $slide['title'] ) ) {
    
          $content.= '<li><img src="' . $slide['image'] . '" alt="' . $slide['title'] . '" /></li>';
    
        }
    
      }
    
      echo '<ul>' . $content. '</ul>';
    
    }

    Thanks it works perfect
    <?php echo ot_get_option( 'id_text_area' ); ?>

    [email protected]

    (@patrickdfirebranddesignsnet)

    @ananddesigner you busted the page! lol

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘How to use option tree’ is closed to new replies.