T
T
towncitybr2021-08-23 15:46:39
WordPress
towncitybr, 2021-08-23 15:46:39

How to reuse templates?

for example, footer and header - it's understandable,
get_header();
get_footer();

but if I have a form (I need it on two pages),
then I try it, it <?php get_template_part( 'form-contacts.php' ) ;?>
doesn't display anything

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Zolin, 2021-08-23
@towncitybr

<?php get_template_part( 'form-contacts' ); ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question