1if ( ! function_exists( 'woocommerce_content' ) ) {
23 /**
4 * Output WooCommerce content.
5 *
6 * This function is only used in the optional 'woocommerce.php' template.
7 * which people can add to their themes to add basic woocommerce support.
8 * without hooks or modifying core templates.
9 *
10 */
11 function woocommerce_content() {
1213 if ( is_singular( 'product' ) ) {
1415 while ( have_posts() ) : the_post();
1617 wc_get_template_part( 'content', 'single-product' );
1819 endwhile;
2021 } else { ?>
2223<?phpif(apply_filters('woocommerce_show_page_title',true)):?>2425<h1class="page-title"><?phpwoocommerce_page_title();?></h1>2627<?phpendif;?>2829<?phpdo_action('woocommerce_archive_description');?>3031<?phpif(have_posts()):?>3233<?phpdo_action('woocommerce_before_shop_loop');?>3435<?phpwoocommerce_product_loop_start();?>3637<?phpwoocommerce_product_subcategories();?>3839<?phpwhile(have_posts()):the_post();?>4041<?phpwc_get_template_part('content','product');?>4243<?phpendwhile;// end of the loop. ?>4445<?phpwoocommerce_product_loop_end();?>4647<?phpdo_action('woocommerce_after_shop_loop');?>4849<?phpelseif(!woocommerce_product_subcategories(array('before'=>woocommerce_product_loop_start(false),'after'=>woocommerce_product_loop_end(false)))):?>5051<?phpwc_get_template('loop/no-products-found.php');?>5253<?phpendif;5455}56}57}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/12/02 01:42 編集
退会済みユーザー
2016/12/02 03:28
2016/12/02 03:34
退会済みユーザー
2016/12/02 03:52
2016/12/02 03:59
退会済みユーザー
2016/12/02 04:14
2016/12/02 04:33
退会済みユーザー
2016/12/02 05:08
2016/12/02 05:58 編集
退会済みユーザー
2016/12/02 11:58 編集
2016/12/03 03:42