• Hi,

    I need to change some things in the plugin to fit my website needs and functionality. So I wrote below code in iss-theme.php file and understood that these functions(is_page_template, is_search, is_tax, is_singular) aren’t working at all inside that file:

    $search_refer = $_GET["post_type"];
    if(is_page_template('home.php') || (is_search() && $search_refer == 'some-referrer') || is_tax('pd-category') || is_singular('some-post-type')){
         $search_refer = 'referrer1';
    }elseif((is_search() && $search_refer == 'some-referrer') || is_page_template('page-supp.php')){
         $search_refer = 'referrer2';
    }

    What’s the issue please? I need urgent help on this please.
    Thanks

    • This topic was modified 8 years, 2 months ago by Aida G.
  • The topic ‘some wordpress functions are not working in iss-theme.php file’ is closed to new replies.