Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter carmolim

    (@carmolim)

    I found some information in this linkBut how I can make multiple templates?

    Thread Starter carmolim

    (@carmolim)

    I’m trying to find a way to show the templates based on witch page is the form. How can I achieve that?

    Plugin Author TC.K

    (@wp_dummy)

    You see there is a $id parameter in the function.
    That is used to identify the form id and you can use it to insert the templates by conditioning check it.

    add_filter('uwpqsf_result_tempt', 'customize_output', '', 4);
    function customize_output($results , $arg, $id, $getdata ){
    	 // The Query
                $apiclass = new uwpqsfprocess();
                 $query = new WP_Query( $arg );
    		ob_start();	$result = '';
    
                   if($id == '123'){
                         //template for post loop for form id 123
                    }
    		if($id == '246'){
                        //template for post loop for form id 246
                    }
    }
    Thread Starter carmolim

    (@carmolim)

    perfect!! thank you!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘custom templates for ajax results’ is closed to new replies.