M
M
mUchenik2018-07-15 15:50:09
WordPress
mUchenik, 2018-07-15 15:50:09

How to solve the problem with the cache?

All the best!
Dear experts, I ask for your advice on how to solve my problem: I
made a template for the "Contacts" page page-contact.php

<?php
/**
 
 Template Name: kontakt_new
 *
 * @package Village
 */

village_get_header(); ?>


  <main id="primary_new" class="content-area content-area--page">
  

      <?php while ( have_posts() ) : the_post(); ?>

        <?php get_template_part( 'content', 'page' ); ?>

        <?php
          // If comments are open or we have at least one comment, load up the comment template
          if ( comments_open() || '0' != get_comments_number() ) :
            comments_template();
          endif;
        ?>

      <?php endwhile; // end of the loop. ?>

  </main><!-- #primary -->

<?php village_get_footer(); ?>

and now, after visiting this page, when you go to other pages, at the very bottom, before the footer, the page "contacts" is displayed. but if there are NOT contacts on any other page, press Ctrl + f5, then the displayed contacts disappear ...
How can I make this page not appear anywhere after visiting the "Contacts" page?
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question