第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

Wordpress 致命錯(cuò)誤:未捕獲錯(cuò)誤:語(yǔ)法錯(cuò)誤

Wordpress 致命錯(cuò)誤:未捕獲錯(cuò)誤:語(yǔ)法錯(cuò)誤

PHP
Helenr 2023-04-15 20:56:33
我在第 134 行代碼中遇到錯(cuò)誤致命錯(cuò)誤:未捕獲錯(cuò)誤:語(yǔ)法錯(cuò)誤,第 134 行 /taxonomy-product_category.php 中的文件意外結(jié)束在某些服務(wù)器上工作的代碼可以和一些服務(wù)器查看錯(cuò)誤消息上面的任何人都可以幫助我代碼中的錯(cuò)誤,我如何解決語(yǔ)法錯(cuò)誤提前感謝<?php/** * The template for displaying Archive pages * * Used to display archive-type pages if nothing more specific matches a query. * For example, puts together date-based pages if no date.php file exists. * * If you'd like to further customize these archive views, you may create a * new template file for each specific one. For example, Twenty Fourteen * already has tag.php for Tag archives, category.php for Category archives, * and author.php for Author archives. * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Fourteen * @since Twenty Fourteen 1.0 */get_header(); ?>    <section id="primary" class="content-area">        <div id="content" class="site-content" role="main">            <?php if ( have_posts() ) : ?>            <header class="page-header"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">                <h1 class="page-title">                    <?php                    if ( is_day() ) {                        /* translators: %s: Date. */                        printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() );                    } elseif ( is_month() ) {                        /* translators: %s: Date. */                        printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );                    }
查看完整描述

1 回答

?
慕無忌1623718

TA貢獻(xiàn)1744條經(jīng)驗(yàn) 獲得超4個(gè)贊

您的代碼中有一些錯(cuò)誤的語(yǔ)法。<? 當(dāng)我相信你想要的時(shí)候,你有一些<?php


我試著為你清理它,所以試試這個(gè)。


<?php

/**

 * The template for displaying Archive pages

 *

 * Used to display archive-type pages if nothing more specific matches a query.

 * For example, puts together date-based pages if no date.php file exists.

 *

 * If you'd like to further customize these archive views, you may create a

 * new template file for each specific one. For example, Twenty Fourteen

 * already has tag.php for Tag archives, category.php for Category archives,

 * and author.php for Author archives.

 *

 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/

 *

 * @package WordPress

 * @subpackage Twenty_Fourteen

 * @since Twenty Fourteen 1.0

 */


get_header(); ?>


    <section id="primary" class="content-area">

        <div id="content" class="site-content" role="main">


            <?php if ( have_posts() ) : ?>


            <header class="page-header"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">

                <h1 class="page-title">

                    <?php

                    if ( is_day() ) {

                        /* translators: %s: Date. */

                        printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() );

                    } elseif ( is_month() ) {

                        /* translators: %s: Date. */

                        printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );

                    } elseif ( is_year() ) {

                        /* translators: %s: Date. */

                        printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) );

                    } else {

                        _e( 'Archives', 'twentyfourteen' );

                    }

                    ?>

                </h1>

            </header><!-- .page-header -->

<section id="product-list" class="section">

            <div class="bandInner">

<?php

if ( function_exists('yoast_breadcrumb') ) {

yoast_breadcrumb('

<p id="breadcrumbs">','</p>

');

}


?>  <h1 class='pageTitle'><?php

    printf( __( ' %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );

?></h1>

<?php 

wp_nav_menu( array( 

    'theme_location' => 'product-category',

    'container'      => 'ul',

    'menu_class'     => 'prodCats',

) );


?>

<style>

ul.prodCats li{

    display:initial!important;

}

ul.prodCats li.current-menu-item a {

    color: #8b2131!important;

}

</style>

<article id="mainContent">


                    <ul id="prodList">

    <?php

                // Start the Loop.

                while ( have_posts() ) :

                    the_post();


                    /*

                     * Include the post format-specific template for the content. If you want

                     * to use this in a child theme, then include a file called content-___.php

                     * (where ___ is the post format) and that will be used instead.

                     */

                    ?>  

                    <li>

                    <div class="prodCtn">

                                    <a class="prodImgCtn prodLink" href="<?php echo get_permalink(); ?>">

                                        <?php 

                                        $img = wp_get_attachment_image_src( get_field('product_image'), "thumb_product" ); 

                                        ?>

                                        <img class="prodImg" src="<?php echo $img[0]; ?>"/>

                                    </a>

                                    <div class="prodCont">

                                        <a href="<?php echo get_permalink(); ?>" class="">

                                            <p class="prodHd"><?php the_title(); ?></p>

                                        </a>

                                        <p>

                                            <?php  

                                                $givchars = 350; 

                                                //$postgiv = the_field('product_description'); 

                                                $postgiv = get_field('product_description'); 

                                                $modgiv = substr($postgiv, 0, $givchars); 

                                                echo ' ' .$modgiv. '... ';

                                            ?>

                                        </p>

                                        <a href="<?php echo get_permalink(); ?>" class="btn">

                                            <span class="btnTxt">View More</span>

                                        </a>

                                    </div>

                                </div>

                                </li>

<?php


                    endwhile;?>

                    </ul>

                    <div id="show-hide-content" class="cat-content less-mode"><?php echo category_description(); ?></div>


                </article>


                    <?php

                    // Previous/next page navigation.



                endif;

                ?></div><!-- #content -->

    </section>

        </div><!-- #content -->

    </section><!-- #primary -->


<?php

get_footer();

?>



查看完整回答
反對(duì) 回復(fù) 2023-04-15
  • 1 回答
  • 0 關(guān)注
  • 149 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)