• Hi,

    I’m trying to do this int he page.php template:

    <?php
                         if (the_title() == 'Reserve Hotels & Tours') {
                            echo "BLA";
                         }
                     ?>

    However, all the the_title() function seems to do, is print out the page title :/

    I’m trying to make it so I can do:

    <?php
                         if (the_title() == 'Reserve Hotels & Tours') {
                            include('/path/to/contact/form.php');
                         }
                     ?>

    ..as I’m using a different contact form, with spam protection (so can’t simply just put the HTML from the form into the template – as it has a CAPTCHA system)

    I’m assuming this must be possible – may just a $variable I’m not aware of?

    TIA!

    Andy

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Getting variables, instead of printing them?’ is closed to new replies.