Support » Plugin: WordPress Meta Data and Taxonomies Filter (MDTF) » Two different templates for search results

Viewing 1 replies (of 1 total)
  • Plugin Author RealMag777

    (@realmag777)

    Hello Lavena
    I think yes. Create 1 template in which include that 2 templates only using condition IF
    BUT
    on the front you will have to create js/php code which fro example will write data to $_SESSION. It is just an idea.

    if($_SESSION['which_template_i_want']=='list'){
       //script of tpl list
    }else{
       //script of tpl grid
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Two different templates for search results’ is closed to new replies.