The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End help with function

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #41653

    I am working in WordPress. I am using Option Tree to get theme options. I made a logo. I can get the logo by doing this

    if ( function_exists( 'ot_get_option' ) ) {
    $logo = ot_get_option( 'logo' );

    I didn't want to type all that stuff out all the time so I tried to make a function that would be a shortcut. It's working but not returning the data. My src attribute is empty when it should contain the url to the photo Here is my function

    function get_kiss_options($kiss_option) {
    if( function_exists( 'ot_get_option' )){
    $option = ot_get_option( '$kiss_option' );
    return $option;

    Then I call it like so

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.