if – is not [template] show title. how? PHP string?
-
This is what I have so far and it’s not working.
`<?php
$get_title = the_title();
if ( ! is_page_template( ‘page-templates/product-page.php’ ) ) {
echo <h1 class=”entry-title”> . $get_title . </h1>
}
?>`
I want it to NOT display the title on that, template.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘if – is not [template] show title. how? PHP string?’ is closed to new replies.