The first time I plant a site on wp (I never did it because I do everything with my hands)

Before that I made attributes and applied them to products on the site (woocommerce is installed)

The fact is that I brought this plugin to the sidebar, but it is displayed only and only on the "main store page" ( main page) and it seems like everything works fine, but this plugin is NOT displayed at all on other pages - I created the "battery" page salutes ", screwed the same sidebar there and now this plugin is not displayed on this and similar pages. secondary

Since I did not sit in wp, I ask the experts to help me figure out why the plugin is not displayed on other pages. except "home store"

Here is the code of the catalogs.php template, which was made specifically for product category pages (in the template I bring out the sidebar just like on the main page of the store, everything is identical), and I add short codes to the content itself to show the products from a certain category on the page

<?php /* Template Name: Catalogs */ ?> <?php include (TEMPLATEPATH. "/header2.php"); ?> <!-- Начало врапер --> <section id="wrapper"> <div id="middle"> <div id="content"> <div id="colLeft"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <!-- Начало .singlecont --> <article class="singlecont"> <div class="cont"> <div class="content"> <?php the_content(); ?> <div class="left-filters"> <?php dynamic_sidebar( 'sidebar-left' ); ?> </div> </div> </div> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> </article><!-- Конец .синглконтент --> </div> <!-- Конец colleft --> <?php get_footer(); ?> 

Template page.php (the same template of the main page of the store where the sidebar works like a clock)

 <?php include (TEMPLATEPATH. "/header2.php"); ?> <!-- Начало врапер --> <section id="wrapper"> <div id="middle"> <div id="content"> <div id="colLeft"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <!-- Начало .singlecont --> <article class="singlecont"> <div class="cont"> <?php the_content(); ?> <div class="left-filters"> <?php dynamic_sidebar( 'sidebar-left' ); ?> </div> </div> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> </article><!-- Конец .синглконтент --> </div> <!-- Конец colleft --> <?php get_footer(); ?> 

sidebar-left.php code

 <section> <?php if ( !dynamic_sidebar( 'sidebar-left' ) ) { ?> <div>Нет виджетов</div> <?php } ?> </section> 

enter image description here

  • The plugin runs always, on all pages of the site. It is not displayed because there is no sidebar on other pages. Perhaps it is not in the page template (in php code) - KAGG Design
  • I wrote that on other pages I brought the same sidebar - Michael Miller
  • It seems to you that you brought him out. There is a <div class="l-sidebar" on the main store, but it is not on the secondary one. Explain what you did for oho to display this sidebar on the secondary page. - KAGG Design
  • The pages of the store often use another sidebar, for example the Woocomerce sidebar (it all depends on your theme). On other pages, the sidebar page template should be selected, you need to check that the Fullwidth template is not selected. Make a screen page with widgets so that you can be prompted - eugene_v
  • @eugene_v hello I have my own theme for wp, that is, the html code is integrated under wp. Yes, on other pages the same template is chosen as on the main one. Screen added to the question - Michael Miller

0