My Example //your php code here Print "Print works too!";
Name
Title: Everyday Italian
Author: Giada De Laurentiis, Year: 2005, Price: $30.00
Title: Harry Potter
Author: J K. Rowling, Year: 2005, Price: $29.99
Title: XQuery Kick Start
Author: James McGovern, Year: 2003, Price: $49.99
Title: Learning XML
Author: Erik T. Ray, Year: 2003, Price: $39.95

Here you will read the Value of the variable:

Value

Number
1
2
3
4
< ?php if ( is_page_template('template-fullwidth.php') ) { ?> your html here < ?php } elseif ( is_page_template('template-planes.php') ) { ?> your html here < ?php } else { ?> your html here < ?php } ?> < ?php “ $name “ ?>