I found some information in this linkBut how I can make multiple templates?
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
}
}