【发布时间】:2021-10-26 16:12:43
【问题描述】:
我必须在 Wordpress 中创建一个全角页面模板。但我不明白为什么,即使我只调用我的“sidebar-bas”,我也显示了“sidebar-droite”:/
希望有人能帮帮我
<?php
/*
Template Name: Full Width
*/
?>
<?php get_header();
if(have_posts()): while(have_posts()): the_post();?>
<section id="pages" class="haut avecAside">
<section id="pages" class="haut">
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
</section>
<?php endwhile;
endif;
get_sidebar( 'sidebar-bas' );
get_footer();?>
【问题讨论】:
-
问题的标题与问题本身不匹配。那么,您是否试图获得一个侧栏,但它正在显示另一个?
标签: php wordpress templates wordpress-theming