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> 
<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