• Hallo,

    i have the problem, that if i load a php validation code like this:
    <?php get_template_part( 'ssi/struc', 'en_formprocess_frontpage' ); ?>
    the validation does not work.

    but if i place the code directly in frontpage.php, it works as expected. why?
    is there another way to load the php in the template from outside. i know that include is not an option…or is it?

    thanx

Viewing 1 replies (of 1 total)
  • Thread Starter W2014

    (@w2014)

    ok…i solved it myself…i just used:

    <?php include(locate_template('/ssi/struc-en_formprocess_frontpage.php')); ?>

    and it works now…

Viewing 1 replies (of 1 total)

The topic ‘validate not working when i use – get_template_part’ is closed to new replies.